aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2024-12-18 02:40:51 -0300
committerHisham Muhammad <hisham@gobolinux.org>2024-12-18 05:45:06 +0000
commit70cd6c034a197df7f32f2f7513f4a5db8570ceb2 (patch)
tree0e301f8358dfa04371dd60bceb10d003b4cb2f1c /src
parenta9e89472f48f7c3ae42431daa4d38adf05a156c1 (diff)
downloadluasystem-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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/time.c b/src/time.c
index c18ec49..efa7655 100644
--- a/src/time.c
+++ b/src/time.c
@@ -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"