Skip to content

Commit

Permalink
rewrite gcc version check for '_CRT_NON_CONFORMING_SWPRINTFS'
Browse files Browse the repository at this point in the history
  • Loading branch information
brunotl committed Nov 25, 2015
1 parent a5371b3 commit ad8826a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Expand Up @@ -451,10 +451,8 @@ endif
ifeq ($(CONFIG_PC),y)
CPPFLAGS += -D_WINDOWS -DWIN32 -DCECORE $(UNICODE)

ifeq ($(GCCVERSION), 4.8.3)
CPPFLAGS += -D_CRT_NON_CONFORMING_SWPRINTFS
endif
ifeq ($(GCCVERSION), 4.9.1)
GCC_GTEQ_480 := $(shell expr `gcc -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 40800)
ifeq ($(GCC_GTEQ_480),1)
CPPFLAGS += -D_CRT_NON_CONFORMING_SWPRINTFS
endif
endif
Expand Down

0 comments on commit ad8826a

Please sign in to comment.