From d322f2a6efeec20fc66ce5ba16434fa017166af3 Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Fri, 9 May 2014 11:40:50 +0800 Subject: [PATCH] Define __USE_MINGW_ANSI_STDIO for windows build Some printf/scanf functions in Windows aren't C99 compatible. Define __USE_MINGW_ANSI_STDIO for mingw compiler to use it's own set of replacement libraries which are more C99-like. Change-Id: I51dfa582971ec0487409067e8bb7fe3a44577b93 --- core/combo/HOST_windows-x86.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/combo/HOST_windows-x86.mk b/core/combo/HOST_windows-x86.mk index 170971114f..cd047a1283 100644 --- a/core/combo/HOST_windows-x86.mk +++ b/core/combo/HOST_windows-x86.mk @@ -42,7 +42,7 @@ endif # Linux # Workaround differences in inttypes.h between host and target. # See bug 12708004. -HOST_GLOBAL_CFLAGS += -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS +HOST_GLOBAL_CFLAGS += -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -D__USE_MINGW_ANSI_STDIO HOST_CC := $(TOOLS_PREFIX)gcc$(TOOLS_EXE_SUFFIX) HOST_CXX := $(TOOLS_PREFIX)g++$(TOOLS_EXE_SUFFIX)