From 87f380b90c2b29b074643f03c7b1733977890e10 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 1 May 2019 19:03:23 +0300 Subject: [PATCH] waflib: xcompile: define both __ANDROID__ and ANDROID for compatibility --- scripts/waflib/xcompile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/waflib/xcompile.py b/scripts/waflib/xcompile.py index 7a2c25c8..0bf26804 100644 --- a/scripts/waflib/xcompile.py +++ b/scripts/waflib/xcompile.py @@ -117,7 +117,7 @@ class Android: return os.path.abspath(os.path.join(self.ndk_home, path)) def cflags(self): - cflags = ['--sysroot={0}'.format(self.sysroot()), '-DANDROID'] + cflags = ['--sysroot={0}'.format(self.sysroot()), '-DANDROID', '-D__ANDROID__'] if self.is_arm(): if self.arch.startswith('armeabi-v7a'): # ARMv7 support