windows: define __USE_MINGW_ANSI_STDIO for all Windows compilers.

This commit is contained in:
Damien George 2014-12-06 19:51:30 +00:00
parent 9de6773237
commit 1f8a2f6623
1 changed files with 1 additions and 4 deletions

View File

@ -15,11 +15,8 @@ INC += -I$(PY_SRC)
INC += -I$(BUILD)
# compiler settings
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -DUNIX -D__USE_MINGW_ANSI_STDIO=1 $(CFLAGS_MOD) $(COPT)
LDFLAGS = $(LDFLAGS_MOD) -lm
ifeq ($(CROSS_COMPILE),i686-w64-mingw32-)
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
endif
# Debugging/Optimization
ifdef DEBUG