From: Warren Melnick Date: Mon, 29 May 2017 14:52:51 +0000 (-0400) Subject: Move the if for GCC 4 to an elseif so it does not interfere with MacOS X-Git-Tag: seed~18 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=7555c5354a0db4b0eafe5e9b742068f01985860c Move the if for GCC 4 to an elseif so it does not interfere with MacOS --- diff --git a/Makefile b/Makefile index 7526a71..22f1370 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,10 @@ LIBS=-lrt UNAME_S := $(shell uname -s) +GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4) ifeq ($(UNAME_S),Darwin) LIBS= -endif -GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4) -ifeq "$(GCCVERSIONGTEQ4)" "1" +else ifeq "$(GCCVERSIONGTEQ4)" "1" CC=c99 --std=gnu99 endif