[Commits] SDL: Fixed building with newer Android NDK

libsdl.org revision control commits-owner at libsdl.org
Tue Sep 25 08:24:08 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/f10c21b0c0ef
changeset: 12220:f10c21b0c0ef
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue Sep 25 08:23:57 2018 -0700
description:
Fixed building with newer Android NDK

diffstat:

 src/hidapi/android/hid.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 0be7fc59830a -r f10c21b0c0ef src/hidapi/android/hid.cpp
--- a/src/hidapi/android/hid.cpp	Tue Sep 25 09:20:56 2018 +0300
+++ b/src/hidapi/android/hid.cpp	Tue Sep 25 08:23:57 2018 -0700
@@ -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


More information about the commits mailing list