diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-16 10:51:10 +0100 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2024-01-16 10:51:10 +0100 |
commit | 7f1646f061a074d10dafc7e433b6e64261977177 (patch) | |
tree | cac089f40c906c6dd69c2cb4c4558edeba2cda0d | |
parent | d75e5630e1678211b1c95fc51594b69bcd85311a (diff) |
Fix builds on MacOS
-rw-r--r-- | make.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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" |