diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-12-18 02:40:51 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-12-18 05:45:06 +0000 |
commit | 70cd6c034a197df7f32f2f7513f4a5db8570ceb2 (patch) | |
tree | 0e301f8358dfa04371dd60bceb10d003b4cb2f1c /src | |
parent | a9e89472f48f7c3ae42431daa4d38adf05a156c1 (diff) | |
download | luasystem-70cd6c034a197df7f32f2f7513f4a5db8570ceb2.tar.gz luasystem-70cd6c034a197df7f32f2f7513f4a5db8570ceb2.tar.bz2 luasystem-70cd6c034a197df7f32f2f7513f4a5db8570ceb2.zip |
fix: suppress -Wexpansion-to-defined warning
See https://stackoverflow.com/questions/42074035/how-to-deal-with-clangs-3-9-wexpansion-to-defined-warning
Diffstat (limited to 'src')
-rw-r--r-- | src/time.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -22,7 +22,11 @@ | |||
22 | #define MAC_OS_X_VERSION_10_12 101200 | 22 | #define MAC_OS_X_VERSION_10_12 101200 |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | #define HAVE_CLOCK_GETTIME (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC)) | 25 | #if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC)) |
26 | #define HAVE_CLOCK_GETTIME 1 | ||
27 | #else | ||
28 | #define HAVE_CLOCK_GETTIME 0 | ||
29 | #endif | ||
26 | 30 | ||
27 | #if !(HAVE_CLOCK_GETTIME) | 31 | #if !(HAVE_CLOCK_GETTIME) |
28 | #include "time_osx.h" | 32 | #include "time_osx.h" |