aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dbdefd0..66592c0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
CC := gcc
LD := $(CC)
-CFLAGS := -Wall -Wextra -std=c99 -pedantic $(shell sdl2-config --cflags)
+CFLAGS := -Wall -Wextra -std=c99 -pedantic \
+ -D_POSIX_C_SOURCE=200809L $(shell sdl2-config --cflags)
+# -D_POSIX_C_SOURCE is only used by DEVMODE
LDFLAGS := $(shell sdl2-config --libs) -lSDL2_gfx -lSDL2_image -lSDL2_mixer
SRC := $(wildcard *.c)
OBJ := $(patsubst %.c,%.o,$(SRC))