CHECK_FUNCTION_EXISTS(fseeko HAVE_FSEEKO) test results do not meet expectations on Android plateform
CMakeLists.txt add include("${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake") CHECK_FUNCTION_EXISTS(fseeko HAVE_FSEEKO)
command: cmake -S .. -B . -GNinja "-DCMAKE_BUILD_TYPE:STRING=Release" "-DANDROID_NATIVE_API_LEVEL:STRING=16" "-DANDROID_NDK:PATH=D:/Android/Sdk/ndk/21.4.7075529" "-DCMAKE_TOOLCHAIN_FILE:PATH=D:/Android/Sdk/ndk/21.4.7075529/build/cmake/android.toolchain.cmake" "-DANDROID_ABI:STRING=armeabi-v7a" "-DANDROID_STL:STRING=c++_shared"
output: -- Looking for fseeko -- Looking for fseeko - found
fseeko ftello... undeclared identifier error if (ANDROID_API < 24) They're always available from API level 24 where they were introduced, and never available before then.
If not defined __USE_FILE_OFFSET64,fseeko exists
Edited by ALittleDruid