mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Make it compile with g++ again
This commit is contained in:
parent
82e92811e4
commit
004832f6ec
1 changed files with 6 additions and 1 deletions
7
Makefile
7
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)
|
||||
|
|
Loading…
Reference in a new issue