Sam Lantinga 7 лет назад
Родитель
Сommit
0d22559e30
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/hidapi/android/hid.cpp

+ 1 - 0
src/hidapi/android/hid.cpp

@@ -10,6 +10,7 @@
 #include <android/log.h>
 #include <pthread.h>
 #include <errno.h>	// For ETIMEDOUT and ECONNRESET
+#include <stdlib.h> // For malloc() and free()
 
 #define TAG "hidapi"
 #ifdef DEBUG