Skip to content

Commit 008343f

Browse files
committed
Merge pull request adafruit#621 from stinos/migw-w64-fix
windows: Fix compilation with mingw-w64 so it uses correct printf implem...
2 parents 0537654 + 32acd4b commit 008343f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

windows/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ INC += -I$(BUILD)
1717
# compiler settings
1818
CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(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
2023

2124
# Debugging/Optimization
2225
ifdef DEBUG

0 commit comments

Comments
 (0)