Răsfoiți Sursa

Fixed building with newer Android NDK

Sam Lantinga 7 ani în urmă
părinte
comite
fb0e68ae0f
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/hidapi/android/hid.cpp

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

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