Skip to content

Commit 1f8a2f6

Browse files
committed
windows: define __USE_MINGW_ANSI_STDIO for all Windows compilers.
1 parent 9de6773 commit 1f8a2f6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

windows/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,8 @@ INC += -I$(PY_SRC)
1515
INC += -I$(BUILD)
1616

1717
# compiler settings
18-
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
18+
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -DUNIX -D__USE_MINGW_ANSI_STDIO=1 $(CFLAGS_MOD) $(COPT)
1919
LDFLAGS = $(LDFLAGS_MOD) -lm
20-
ifeq ($(CROSS_COMPILE),i686-w64-mingw32-)
21-
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
22-
endif
2320

2421
# Debugging/Optimization
2522
ifdef DEBUG

0 commit comments

Comments
 (0)