Don't mess with MinGW printf support for now (tricky)

This commit is contained in:
Mike Gelfand 2014-12-13 16:00:14 +00:00
parent 52a9d774e4
commit 74a5bdb9e6
3 changed files with 11 additions and 11 deletions

View File

@ -349,12 +349,12 @@ foreach(F ${NEEDED_FUNCTIONS})
endif()
endforeach()
if(MINGW)
check_function_exists(__mingw_printf HAVE_MINGW_PRINTF)
if(HAVE_MINGW_PRINTF)
add_definitions(-D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1)
endif()
endif()
# if(MINGW)
# check_function_exists(__mingw_printf HAVE_MINGW_PRINTF)
# if(HAVE_MINGW_PRINTF)
# add_definitions(-D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1)
# endif()
# endif()
check_library_exists(m sqrt "" HAVE_LIBM)
if(HAVE_LIBM)

View File

@ -452,7 +452,7 @@ case $host_os in
have_msw="yes"
CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DWIN32_LEAN_AND_MEAN"
CPPFLAGS="$CPPFLAGS -D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1"
# CPPFLAGS="$CPPFLAGS -D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1"
LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
transmissionlocaledir="locale"
if test -z "$host_alias"; then

View File

@ -44,7 +44,7 @@ extern "C" {
#endif
#ifndef PRId64
#if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
#ifdef _WIN32
#define PRId64 "I64"
#else
#define PRId64 "lld"
@ -52,7 +52,7 @@ extern "C" {
#endif
#ifndef PRIu64
#if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
#ifdef _WIN32
#define PRIu64 "I64u"
#else
#define PRIu64 "llu"
@ -60,7 +60,7 @@ extern "C" {
#endif
#ifndef PRIu32
#if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
#ifdef _WIN32
#define PRIu32 "u"
#else
#define PRIu32 "lu"
@ -68,7 +68,7 @@ extern "C" {
#endif
#ifndef TR_PRIuSIZE
#if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
#ifdef _WIN32
#define TR_PRIuSIZE "Iu"
#else
#define TR_PRIuSIZE "zu"