From 004832f6ec167eedf346886942466a014dfe873b Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sun, 16 Jun 2013 05:59:41 +0000 Subject: [PATCH] Make it compile with g++ again --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.2