Kaynağa Gözat

Fun times in ~~cleveland~~ NDK-land

Grant Limberg 2 yıl önce
ebeveyn
işleme
b41e0910b0
3 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 1 1
      java/jni/Application.mk
  2. 1 0
      java/jni/ZT_jniarray.cpp
  3. 1 1
      osdep/Binder.hpp

+ 1 - 1
java/jni/Application.mk

@@ -1,5 +1,5 @@
 # NDK_TOOLCHAIN_VERSION := clang3.5
 APP_STL := c++_static
-APP_CPPFLAGS := -Wall -fstack-protector -fexceptions -fno-strict-aliasing -frtti -Wno-deprecated-register -DZT_NO_TYPE_PUNNING=1
+APP_CPPFLAGS := -Wall -fstack-protector -fexceptions -fno-strict-aliasing -frtti -Wno-deprecated-register -DZT_NO_TYPE_PUNNING=1 -DZT_SSO_SUPPORTED=0 -DOMIT_JSON_SUPPORT=1
 APP_PLATFORM := android-21
 APP_ABI := all

+ 1 - 0
java/jni/ZT_jniarray.cpp

@@ -5,6 +5,7 @@
 #include "ZT_jniarray.h"
 #include <vector>
 #include <string>
+#include <cassert>
 
 jclass java_util_ArrayList;
 jmethodID java_util_ArrayList_;

+ 1 - 1
osdep/Binder.hpp

@@ -311,7 +311,7 @@ class Binder {
 #else
 			const bool gotViaProc = false;
 #endif
-#if ! defined(ZT_SDK) || ! defined(__ANDROID__)	  // getifaddrs() freeifaddrs() not available on Android
+#if ! (defined(ZT_SDK) || defined(__ANDROID__))	  // getifaddrs() freeifaddrs() not available on Android
 			if (! gotViaProc) {
 				struct ifaddrs* ifatbl = (struct ifaddrs*)0;
 				struct ifaddrs* ifa;