mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
e67a1af35f
commit
db3afb03a2
3 changed files with 5 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
# $Id$
|
# $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
|
# Build with "make BOOTOBJS=1" to build with embedded bootloaders and the
|
||||||
# --install option and interactive mode. You need the full set of Rockbox
|
# --install option and interactive mode. You need the full set of Rockbox
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@ APPVERSION ?= $(shell $(TOP)/../tools/version.sh ../)
|
||||||
CFLAGS += -DVERSION=\"$(APPVERSION)\"
|
CFLAGS += -DVERSION=\"$(APPVERSION)\"
|
||||||
TARGET_DIR ?= $(shell pwd)/
|
TARGET_DIR ?= $(shell pwd)/
|
||||||
|
|
||||||
|
# use POSIX/C99 printf on windows
|
||||||
|
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
|
||||||
|
|
||||||
BINARY = $(OUTPUT)
|
BINARY = $(OUTPUT)
|
||||||
# when building a Windows binary add the correct file suffix
|
# when building a Windows binary add the correct file suffix
|
||||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
# \/ \/ \/ \/ \/
|
# \/ \/ \/ \/ \/
|
||||||
|
|
||||||
TARGET_DIR ?= $(shell pwd)/
|
TARGET_DIR ?= $(shell pwd)/
|
||||||
CFLAGS += -Wall -W -D_LARGEFILE64_SOURCE -D__USE_MINGW_ANSI_STDIO=1
|
CFLAGS += -Wall -W -D_LARGEFILE64_SOURCE
|
||||||
|
|
||||||
OUTPUT = sansapatcher
|
OUTPUT = sansapatcher
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue