File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,14 @@ endif()
117
117
set (CMAKE_DEBUG_POSTFIX "" CACHE STRING "Library postfix for debug builds. Normally left blank." FORCE )
118
118
set (CMAKE_PLATFORM_NO_VERSIONED_SONAME TRUE CACHE BOOL "Disable dynamic libraries symblink." FORCE )
119
119
120
- # set hash style to both for android old device compatible
121
- # see also: https://github.com/axmolengine/axmol/discussions/614
120
+
122
121
if (ANDROID )
122
+ # Ensure fseeko available on ndk > 23
123
+ math (EXPR _ARCH_BITS "${CMAKE_SIZEOF_VOID_P} * 8" )
124
+ add_definitions (-D_FILE_OFFSET_BITS=${_ARCH_BITS} )
125
+
126
+ # set hash style to both for android old device compatible
127
+ # see also: https://github.com/axmolengine/axmol/discussions/614
123
128
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--hash-style=both" )
124
129
endif ()
125
130
@@ -133,7 +138,6 @@ function(use_ax_compile_define target)
133
138
134
139
if (APPLE )
135
140
target_compile_definitions (${target} PUBLIC __APPLE__ )
136
- target_compile_definitions (${target} PUBLIC USE_FILE32API )
137
141
if (AX_USE_GL )
138
142
target_compile_definitions (${target}
139
143
PUBLIC AX_USE_GL=1
@@ -151,7 +155,6 @@ function(use_ax_compile_define target)
151
155
target_compile_definitions (${target} PUBLIC AX_GLES_PROFILE=${AX_GLES_PROFILE} )
152
156
endif ()
153
157
target_compile_definitions (${target} PUBLIC AX_GLES_PROFILE=${AX_GLES_PROFILE} )
154
- target_compile_definitions (${target} PUBLIC USE_FILE32API )
155
158
elseif (EMSCRIPTEN )
156
159
target_compile_definitions (${target} PUBLIC AX_GLES_PROFILE=${AX_GLES_PROFILE} )
157
160
elseif (WINDOWS )
You can’t perform that action at this time.
0 commit comments