makefile: Generalize the gcc -std tests to work for both MinGW and unix environments. Fix #250
This commit is contained in:
parent
0938d31e59
commit
01c410ab32
1 changed files with 2 additions and 2 deletions
4
makefile
4
makefile
|
@ -902,10 +902,10 @@ ifeq (HP-UX,$(OSTYPE))
|
||||||
CC_STD = -std=gnu99
|
CC_STD = -std=gnu99
|
||||||
else
|
else
|
||||||
ifeq (,$(SUNC_VERSION))
|
ifeq (,$(SUNC_VERSION))
|
||||||
ifneq (,$(findstring error,$(shell $(GCC) -std=c11 -version /dev/null 2>&1)))
|
ifeq (,$(findstring error,$(shell $(GCC) -std=c11 --version 2>&1)))
|
||||||
CC_STD = -std=c11
|
CC_STD = -std=c11
|
||||||
else
|
else
|
||||||
ifneq (,$(findstring error,$(shell $(GCC) -std=gnu99 -version /dev/null 2>&1)))
|
ifeq (,$(findstring error,$(shell $(GCC) -std=gnu99 --version 2>&1)))
|
||||||
CC_STD = -std=gnu99
|
CC_STD = -std=gnu99
|
||||||
else
|
else
|
||||||
CC_STD = -std=c99 -fms-extensions
|
CC_STD = -std=c99 -fms-extensions
|
||||||
|
|
Loading…
Add table
Reference in a new issue