From 7f1646f061a074d10dafc7e433b6e64261977177 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 16 Jan 2024 10:51:10 +0100 Subject: Fix builds on MacOS --- make.c | 8 ++++---- 1 file 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 #include #include @@ -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" -- cgit v1.2.3