summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-06-04 04:05:19 -0400
committerJesse Luehrs <doy@tozt.net>2016-06-04 04:05:19 -0400
commit667043c7c309bc329a78124facd8a32db401a817 (patch)
treea48a894170234423b1dbca47b735a11ef5e5bdd5
parent19cf4ec52ece4d25d636b218f267487e647a6303 (diff)
downloadlibvt100-667043c7c309bc329a78124facd8a32db401a817.tar.gz
libvt100-667043c7c309bc329a78124facd8a32db401a817.zip
enable c11 mode and add a feature test macro
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9a06854..d3ab93b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@ OBJ = $(BUILD)parser.o \
$(BUILD)unicode-extra.o
LIBS = glib-2.0
OPT ?= -g
-CFLAGS ?= $(OPT) -Wall -Wextra -Werror -pedantic
-LDFLAGS ?= $(OPT) -Wall -Wextra -Werror -pedantic
+CFLAGS ?= $(OPT) -Wall -Wextra -Werror -pedantic -std=c11 -D_XOPEN_SOURCE=600
+LDFLAGS ?= $(OPT) -Wall -Wextra -Werror -pedantic -std=c11 -D_XOPEN_SOURCE=600
ALLCFLAGS = $(shell pkg-config --cflags $(LIBS)) $(CFLAGS)
ALLLDFLAGS = $(shell pkg-config --libs $(LIBS)) $(LDFLAGS)