diff options
author | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-05-12 14:27:17 +0200 |
---|---|---|
committer | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-05-12 14:27:17 +0200 |
commit | 6dad3c7bbf082ffc4468e353a569ae142bec7fd4 (patch) | |
tree | 7357811a2be1ce9261d39314f0738a1e1465d002 | |
parent | 0e1d18a2d0f48243fc4e0d40515bb0f224f618f0 (diff) | |
download | imv-6dad3c7bbf082ffc4468e353a569ae142bec7fd4.tar.gz |
Fix compatibility with older gcc versions
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |