X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=22f1370edf6665e0db8547cdb0cf35b80751f9cf;hb=7555c5354a0db4b0eafe5e9b742068f01985860c;hp=8a306139bed5163fa9799cc654781cf8d942723c;hpb=779a1cceae80608bb0976d20f69a6ded0d27b2d5;p=open-adventure.git diff --git a/Makefile b/Makefile index 8a30613..22f1370 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,11 @@ LIBS=-lrt UNAME_S := $(shell uname -s) +GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4) ifeq ($(UNAME_S),Darwin) LIBS= +else ifeq "$(GCCVERSIONGTEQ4)" "1" + CC=c99 --std=gnu99 endif OBJS=main.o init.o actions1.o actions2.o score.o misc.o database.o