MinGW: prefer C99 compliance by using replacement implementations.

This addresses several warnings caused by format modifiers that are not
supported by MSVCRT. MinGW provides replacement functions since mingw-runtime
3.15 so use them. See also
http://article.gmane.org/gmane.comp.gnu.mingw.user/27539/



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28735 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2010-12-05 15:24:10 +00:00
parent 465e75a2ba
commit 271441eb9d
2 changed files with 4 additions and 0 deletions

View file

@ -130,6 +130,9 @@ DEFINES += RBUTIL _LARGEFILE64_SOURCE
# platform specific # platform specific
win32 { win32 {
# use MinGW's implementation of stdio functions for extended format string
# support.
DEFINES += __USE_MINGW_ANSI_STDIO=1
LIBS += -lsetupapi -lnetapi32 LIBS += -lsetupapi -lnetapi32
} }
win32:static { win32:static {

View file

@ -8,6 +8,7 @@ else
ifeq ($(findstring MINGW,$(shell uname)),MINGW) ifeq ($(findstring MINGW,$(shell uname)),MINGW)
OUTPUT=sansapatcher.exe OUTPUT=sansapatcher.exe
CROSS= CROSS=
CFLAGS+=-D__USE_MINGW_ANSI_STDIO=1
else else
OUTPUT=sansapatcher OUTPUT=sansapatcher
CROSS=i586-mingw32msvc- CROSS=i586-mingw32msvc-