@@ -21,7 +21,7 @@ def get_opts():
21
21
22
22
return [
23
23
("ANDROID_SDK_ROOT" , "Path to the Android SDK" , get_env_android_sdk_root ()),
24
- ("ndk_platform" , 'Target platform (android-<api>, e.g. "android-24 ")' , "android-24 " ),
24
+ ("ndk_platform" , 'Target platform (android-<api>, e.g. "android-21 ")' , "android-21 " ),
25
25
EnumVariable ("android_arch" , "Target architecture" , "armv7" , ("armv7" , "arm64v8" , "x86" , "x86_64" )),
26
26
BoolVariable ("android_neon" , "Enable NEON support (armv7 only)" , True ),
27
27
BoolVariable ("store_release" , "Editor build for Google Play Store (for official builds only)" , False ),
@@ -176,7 +176,9 @@ def configure(env):
176
176
CCFLAGS = "-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -fvisibility=hidden -fno-strict-aliasing" .split ()
177
177
)
178
178
env .Append (CPPDEFINES = ["NO_STATVFS" , "GLES_ENABLED" ])
179
- env .Append (CPPDEFINES = [("_FILE_OFFSET_BITS" , 64 )])
179
+
180
+ if get_min_sdk_version (env ["ndk_platform" ]) >= 24 :
181
+ env .Append (CPPDEFINES = [("_FILE_OFFSET_BITS" , 64 )])
180
182
181
183
env ["neon_enabled" ] = False
182
184
if env ["android_arch" ] == "x86" :
0 commit comments