diff options
author | Damien George <damien.p.george@gmail.com> | 2014-12-06 19:51:30 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-12-06 19:51:30 +0000 |
commit | 1f8a2f662369c0f51cfa8720d9a11cd187948bf6 (patch) | |
tree | d6e3f0786bc6878bcca730a8f0a0a3822228451f | |
parent | 9de67732371a02738e16ab2e90138976628ef5e6 (diff) | |
download | micropython-1f8a2f662369c0f51cfa8720d9a11cd187948bf6.tar.gz micropython-1f8a2f662369c0f51cfa8720d9a11cd187948bf6.zip |
windows: define __USE_MINGW_ANSI_STDIO for all Windows compilers.
-rw-r--r-- | windows/Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/windows/Makefile b/windows/Makefile index d83a5d46f6..28b73d614c 100644 --- a/windows/Makefile +++ b/windows/Makefile @@ -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 |