SDL/include/build_config
Frank Praznik 4a7e3beeb9 filesystem: Use high-res file times on more platforms
Some POSIX platforms don't define macros to note the presence of the POSIX.1-2008 st_*tim timespec members of the stat struct, so check if this member exists during CMake configuration and conditionally enable it.

Apple platforms use st_*timespec naming, which is supported as of OSX 10.6. SDL3 requires 10.9+, so no fallback is needed.

Android only supports the POSIX.1-2008 semantics as of API version 26 or higher, so this has to be conditionally enabled in the makefile build via an API version definition check.

In other cases, file times fall back to the legacy path with second precision.
2024-03-20 11:39:42 -04:00
..
SDL_build_config.h Define SDL_PLATFORM_* macros instead of underscored ones (#8875) 2024-01-24 01:40:51 +00:00
SDL_build_config.h.cmake filesystem: Use high-res file times on more platforms 2024-03-20 11:39:42 -04:00
SDL_build_config_android.h filesystem: Use high-res file times on more platforms 2024-03-20 11:39:42 -04:00
SDL_build_config_emscripten.h Added portable file and directory operations (thanks @icculus!) 2024-03-17 08:39:43 -07:00
SDL_build_config_ios.h Add time and realtime clock functions 2024-03-19 10:57:36 -07:00
SDL_build_config_macos.h Updated Xcode project for time APIs 2024-03-19 14:53:55 -07:00
SDL_build_config_minimal.h Added portable file and directory operations (thanks @icculus!) 2024-03-17 08:39:43 -07:00
SDL_build_config_ngage.h Added portable file and directory operations (thanks @icculus!) 2024-03-17 08:39:43 -07:00
SDL_build_config_windows.h Add time and realtime clock functions 2024-03-19 10:57:36 -07:00
SDL_build_config_wingdk.h Add time and realtime clock functions 2024-03-19 10:57:36 -07:00
SDL_build_config_winrt.h Add time and realtime clock functions 2024-03-19 10:57:36 -07:00
SDL_build_config_xbox.h Added portable file and directory operations (thanks @icculus!) 2024-03-17 08:39:43 -07:00
SDL_revision.h.cmake Updated copyright for 2024 2024-01-01 13:15:26 -08:00