Add GNU90_BUILD flag to toggle off -std=gnu99.

This commit is contained in:
Themaister 2013-10-22 21:41:51 +02:00
parent 7aa8b40759
commit 46177dbc40
2 changed files with 9 additions and 5 deletions

View File

@ -358,10 +358,12 @@ ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else else
LD = $(CC) LD = $(CC)
ifneq ($(findstring icc,$(CC)),) ifneq ($(GNU90_BUILD), 1)
CFLAGS += -std=c99 -D_GNU_SOURCE ifneq ($(findstring icc,$(CC)),)
else CFLAGS += -std=c99 -D_GNU_SOURCE
CFLAGS += -std=gnu99 else
CFLAGS += -std=gnu99
endif
endif endif
endif endif

View File

@ -257,7 +257,9 @@ CXXFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I. -std=c++0x -D__STD
ifeq ($(CXX_BUILD), 1) ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else else
CFLAGS += -std=gnu99 ifneq ($(GNU90_BUILD), 1)
CFLAGS += -std=gnu99
endif
endif endif
all: $(TARGET) $(JTARGET) all: $(TARGET) $(JTARGET)