aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2024-02-14 12:36:42 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2024-02-14 12:36:42 +0100
commitee3eb5ac6c89d10b4a564dedae50216b196bad9c (patch)
tree8c14f7018da5b64cefec6ba7844168fab838f819 /make.c
parent269d6af510b641c4d848ada8e20325205aa2e7be (diff)
Fix builds on MacOS
Diffstat (limited to 'make.c')
-rw-r--r--make.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/make.c b/make.c
index 2008b21..f547737 100644
--- a/make.c
+++ b/make.c
@@ -22,8 +22,10 @@
"-Wno-pointer-sign" /* char ↔ char8_t */
#define CC "cc"
-#ifdef __GNUC__
+#ifdef __GLIBC__
# define CFLAGS WARN, "-std=c2x", "-D_GNU_SOURCE"
+#elifdef __APPLE__ /* TODO: Improve this check */
+# define CFLAGS WARN, "-std=c2x", "-DUINT64_WIDTH=64"
#else
# define CFLAGS WARN, "-std=c2x"
#endif