From: Dale Weiler Date: Sun, 16 Jun 2013 05:59:41 +0000 (+0000) Subject: Make it compile with g++ again X-Git-Tag: v0.3.0~117 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=004832f6ec167eedf346886942466a014dfe873b Make it compile with g++ again --- diff --git a/Makefile b/Makefile index 2e5c1ee..ba3a049 100644 --- a/Makefile +++ b/Makefile @@ -35,10 +35,15 @@ else #Tiny C Compiler doesn't know what -pedantic-errors is # and instead of ignoring .. just errors. ifneq ($(CC), tcc) - CFLAGS += -Wstrict-prototypes -pedantic-errors + CFLAGS += -pedantic-errors else CFLAGS += -Wno-pointer-sign -fno-common endif + + #-Wstrict-prototypes is not valid in g++ + ifneq ($(CC), g++) + CFLAGS += -Wstrict-prototypes + endif endif ifeq ($(track), no)