mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Add GNU90_BUILD flag to toggle off -std=gnu99.
This commit is contained in:
parent
7aa8b40759
commit
46177dbc40
10
Makefile
10
Makefile
@ -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
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user