summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-20 16:38:16 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-05-20 16:38:16 +0300
commit008343f6408ca6ec3be153e94b6e7824f2ce5a47 (patch)
tree12e0979262166d3207b833657ca15dca319b0399
parent053765414c9d3345a628ff11145639506ae90288 (diff)
parent32acd4b9f1c4c9e63ec1c3884171a5c6c0b9f4c6 (diff)
downloadmicropython-008343f6408ca6ec3be153e94b6e7824f2ce5a47.tar.gz
micropython-008343f6408ca6ec3be153e94b6e7824f2ce5a47.zip
Merge pull request #621 from stinos/migw-w64-fix
windows: Fix compilation with mingw-w64 so it uses correct printf implem...
-rw-r--r--windows/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/Makefile b/windows/Makefile
index 8fcc0b5815..a188979bd5 100644
--- a/windows/Makefile
+++ b/windows/Makefile
@@ -17,6 +17,9 @@ INC += -I$(BUILD)
# compiler settings
CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(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