Fixed building with newer Android NDK
authorSam Lantinga <slouken@libsdl.org>
Tue, 25 Sep 2018 08:23:57 -0700
changeset 12220f10c21b0c0ef
parent 12206 0be7fc59830a
child 12221 e50b720b73e9
Fixed building with newer Android NDK
src/hidapi/android/hid.cpp
     1.1 --- a/src/hidapi/android/hid.cpp	Tue Sep 25 09:20:56 2018 +0300
     1.2 +++ b/src/hidapi/android/hid.cpp	Tue Sep 25 08:23:57 2018 -0700
     1.3 @@ -9,9 +9,9 @@
     1.4  #include <jni.h>
     1.5  #include <android/log.h>
     1.6  #include <pthread.h>
     1.7 -#include <stdlib.h>
     1.8  #include <errno.h>	// For ETIMEDOUT and ECONNRESET
     1.9  #include <stdlib.h> // For malloc() and free()
    1.10 +#include <string.h>	// For memcpy()
    1.11  
    1.12  #define TAG "hidapi"
    1.13  #ifdef DEBUG