diff options
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" |