cmake: define _LARGEFILE64_SOURCE=1 during symbol testing for fopen64 and fseeko64

This commit is contained in:
Anonymous Maarten
2026-11-18 20:35:35 +01:00
committed by Anonymous Maarten
parent 4dac0a0d10
commit fb7e65e4c8
+3
View File
@@ -1171,6 +1171,9 @@ if(SDL_LIBC)
sdl_link_dependency(math LIBS m)
list(APPEND CMAKE_REQUIRED_LIBRARIES m)
endif()
if(UNIX)
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1)
endif()
foreach(_FN IN LISTS symbols_to_check)
string(TOUPPER ${_FN} _UPPER)
set(LIBC_HAS_VAR "LIBC_HAS_${_UPPER}")