Commit 1f8a2f66 authored by Damien George's avatar Damien George
Browse files

windows: define __USE_MINGW_ANSI_STDIO for all Windows compilers.

parent 9de67732
...@@ -15,11 +15,8 @@ INC += -I$(PY_SRC) ...@@ -15,11 +15,8 @@ INC += -I$(PY_SRC)
INC += -I$(BUILD) INC += -I$(BUILD)
# compiler settings # 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 LDFLAGS = $(LDFLAGS_MOD) -lm
ifeq ($(CROSS_COMPILE),i686-w64-mingw32-)
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
endif
# Debugging/Optimization # Debugging/Optimization
ifdef DEBUG ifdef DEBUG
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment