mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-11-30 16:48:41 +01:00
cmake: define _LARGEFILE64_SOURCE=1 during symbol testing for fopen64 and fseeko64
This commit is contained in:
committed by
Anonymous Maarten
parent
4dac0a0d10
commit
fb7e65e4c8
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user