aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <thomas.voss@humanwave.nl> 2024-01-16 10:51:10 +0100
committerThomas Voss <thomas.voss@humanwave.nl> 2024-01-16 10:51:10 +0100
commit7f1646f061a074d10dafc7e433b6e64261977177 (patch)
treecac089f40c906c6dd69c2cb4c4558edeba2cda0d
parentd75e5630e1678211b1c95fc51594b69bcd85311a (diff)
Fix builds on MacOS
-rw-r--r--make.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/make.c b/make.c
index 95a6f54..436b431 100644
--- a/make.c
+++ b/make.c
@@ -1,4 +1,6 @@
-#define _POSIX_C_SOURCE 200809L
+#ifndef __APPLE__
+# define _POSIX_C_SOURCE 200809L
+#endif
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
@@ -10,9 +12,7 @@
#include "cbs.h"
#define CC "cc"
-#define CFLAGS \
- "-Wall", "-Wextra", "-Wpedantic", "-Werror", "-D_POSIX_C_SOURCE=200809", \
- "-pipe"
+#define CFLAGS "-Wall", "-Wextra", "-Wpedantic", "-Werror", "-pipe"
#define CFLAGS_DEBUG "-DGRAB_DEBUG", "-g", "-ggdb3"
#ifdef __APPLE__
# define CFLAGS_RELEASE "-O3"