Index: build/android/java_cpp_template.gypi |
diff --git a/build/android/java_cpp_template.gypi b/build/android/java_cpp_template.gypi |
index 22b7214d070f454b0c1b24f7ecb268c96777cfdf..c55b1002f5e5f68f4af57744744b860b7b74be08 100644 |
--- a/build/android/java_cpp_template.gypi |
+++ b/build/android/java_cpp_template.gypi |
@@ -56,6 +56,7 @@ |
'action': [ |
'gcc', # invoke host gcc. |
'-E', # stop after preprocessing. |
+ '-D', 'ANDROID', # Specify ANDROID define for pre-processor. |
'-x', 'c-header', # treat sources as C header files |
'-P', # disable line markers, i.e. '#line 309' |
'-I', '<(DEPTH)', # Add project top-level to include path |