1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

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
else
LD = $(CC)
ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99 -D_GNU_SOURCE
else
CFLAGS += -std=gnu99
ifneq ($(GNU90_BUILD), 1)
ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99 -D_GNU_SOURCE
else
CFLAGS += -std=gnu99
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)
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else
CFLAGS += -std=gnu99
ifneq ($(GNU90_BUILD), 1)
CFLAGS += -std=gnu99
endif
endif
all: $(TARGET) $(JTARGET)