diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-02-14 12:36:42 +0100 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-02-14 12:36:42 +0100 |
commit | ee3eb5ac6c89d10b4a564dedae50216b196bad9c (patch) | |
tree | 8c14f7018da5b64cefec6ba7844168fab838f819 /make.c | |
parent | 269d6af510b641c4d848ada8e20325205aa2e7be (diff) |
Fix builds on MacOS
Diffstat (limited to 'make.c')
-rw-r--r-- | make.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |