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>
This commit is contained in:
Rafaël Carré 2012-02-05 14:03:10 -05:00 committed by Rafaël Carré
parent e67a1af35f
commit db3afb03a2
3 changed files with 5 additions and 2 deletions

View file

@ -7,7 +7,7 @@
# $Id$
#
CFLAGS += -Wall -W -D__USE_MINGW_ANSI_STDIO=1
CFLAGS += -Wall -W
# Build with "make BOOTOBJS=1" to build with embedded bootloaders and the
# --install option and interactive mode. You need the full set of Rockbox

View file

@ -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)

View file

@ -6,7 +6,7 @@
# \/ \/ \/ \/ \/
TARGET_DIR ?= $(shell pwd)/
CFLAGS += -Wall -W -D_LARGEFILE64_SOURCE -D__USE_MINGW_ANSI_STDIO=1
CFLAGS += -Wall -W -D_LARGEFILE64_SOURCE
OUTPUT = sansapatcher