From 667043c7c309bc329a78124facd8a32db401a817 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 4 Jun 2016 04:05:19 -0400 Subject: enable c11 mode and add a feature test macro --- Makefile | 4 ++-- 1 file 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) -- cgit v1.2.3