diff --git a/CMakeLists.txt b/CMakeLists.txt index b8b4ffad..6770847a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -151,7 +151,9 @@ IF ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel") string(APPEND CMAKE_C_FLAGS " -fp-model precise ") ENDIF () # Define for the function strtod_l +if(NOT ANDROID) string(APPEND CMAKE_C_FLAGS " -D_GNU_SOURCE=1 ") +endif() # Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). string(APPEND CMAKE_C_FLAGS " -D_LARGEFILE_SOURCE=1 ") string(APPEND CMAKE_C_FLAGS " -D_LARGE_FILES=1 ")