From 6dad3c7bbf082ffc4468e353a569ae142bec7fd4 Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Thu, 12 May 2016 14:27:17 +0200 Subject: Fix compatibility with older gcc versions --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 250d19a..72204be 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ ifeq ($(V),) MUTE := @ endif -CFLAGS ?= -W -Wall -Wpedantic -Wmissing-prototypes -CFLAGS += -std=gnu11 $(shell sdl2-config --cflags) +CFLAGS ?= -W -Wall -pedantic -Wmissing-prototypes +CFLAGS += -std=c99 $(shell sdl2-config --cflags) LDFLAGS += $(shell sdl2-config --libs) -lfreeimage -lSDL2_ttf -lfontconfig -lpthread BUILDDIR ?= build @@ -48,7 +48,7 @@ $(BUILDDIR)/%.o: src/%.c $(BUILDDIR)/test_%: test/%.c src/%.c @echo "BUILDING $@" - $(MUTE)$(CC) -o $@ -Isrc $(TFLAGS) $(LDFLAGS) -std=gnu11 -lcmocka $^ + $(MUTE)$(CC) -o $@ -Isrc $(TFLAGS) $(LDFLAGS) -lcmocka $^ check: $(BUILDDIR) $(TESTS) @echo "RUNNING TESTS" -- cgit v1.2.3