summaryrefslogtreecommitdiffstats
path: root/rbutil/libtools.make
diff options
context:
space:
mode:
authorRafaël Carré <funman@videolan.org>2012-02-05 14:03:10 -0500
committerRafaël Carré <rafael.carre@gmail.com>2012-02-05 20:36:31 +0100
commitdb3afb03a26868b00011e9aab9733643440bc03a (patch)
tree6d825195466105502fc0a57103784ff6fe7a115a /rbutil/libtools.make
parente67a1af35fe54b376bafb76eae500ac009631ba2 (diff)
downloadrockbox-db3afb03a26868b00011e9aab9733643440bc03a.tar.gz
rockbox-db3afb03a26868b00011e9aab9733643440bc03a.zip
Make sure we use POSIX/C99 printf() when building for windows
Change-Id: I429ed40dc2b9d4fb238762113bd40936df896df0 Reviewed-on: http://gerrit.rockbox.org/85 Reviewed-by: Dominik Riebeling <Dominik.Riebeling@gmail.com>
Diffstat (limited to 'rbutil/libtools.make')
-rw-r--r--rbutil/libtools.make3
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/libtools.make b/rbutil/libtools.make
index b3015015ed..cc582ce015 100644
--- a/rbutil/libtools.make
+++ b/rbutil/libtools.make
@@ -27,6 +27,9 @@ APPVERSION ?= $(shell $(TOP)/../tools/version.sh ../)
CFLAGS += -DVERSION=\"$(APPVERSION)\"
TARGET_DIR ?= $(shell pwd)/
+# use POSIX/C99 printf on windows
+CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
+
BINARY = $(OUTPUT)
# when building a Windows binary add the correct file suffix
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)