diff options
author | Sam Lantinga <slouken@libsdl.org> | 2021-02-01 21:56:56 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2021-02-01 21:56:56 -0800 |
commit | 3387f0126c3733814ac39bffe82b8af75972f251 (patch) | |
tree | 7e72632d5a1f12acde3a6114deae0f1bddec4fec /CMakeLists.txt | |
parent | cb5a3b73ba92c31b96a44b6ba3fe49a8aa46fb35 (diff) | |
download | sdl-3387f0126c3733814ac39bffe82b8af75972f251.tar.gz |
Removed support for clock_gettime_nsec_np()
SDL_GetTicks() was broken and it's not adding any real value here.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e20eefd2..b66a81486 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -875,18 +875,6 @@ if(LIBC) else() set(HAVE_ALLOCA_H 1) set(HAVE_ALLOCA 1) - if(IOS OR TVOS) # assuming iOS / TVOS >= 10.0 - set(HAVE_CLOCK_GETTIME_NSEC_NP 1) - else() - CHECK_C_SOURCE_COMPILES(" - #include <AvailabilityMacros.h> - #include <time.h> - #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200 - #error Need 10.12 or newer target - #endif - int main(int argc, char **argv) { return !clock_gettime_nsec_np(CLOCK_MONOTONIC); } - " HAVE_CLOCK_GETTIME_NSEC_NP) - endif() endif() check_struct_has_member("struct sigaction" "sa_sigaction" "signal.h" HAVE_SA_SIGACTION) |