Changeset 14383


Ignore:
Timestamp:
Dec 13, 2014, 4:00:14 PM (8 years ago)
Author:
mikedld
Message:

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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r14371 r14383  
    350350endforeach()
    351351
    352 if(MINGW)
    353     check_function_exists(__mingw_printf HAVE_MINGW_PRINTF)
    354     if(HAVE_MINGW_PRINTF)
    355         add_definitions(-D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1)
    356     endif()
    357 endif()
     352# if(MINGW)
     353#     check_function_exists(__mingw_printf HAVE_MINGW_PRINTF)
     354#     if(HAVE_MINGW_PRINTF)
     355#         add_definitions(-D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1)
     356#     endif()
     357# endif()
    358358
    359359check_library_exists(m sqrt "" HAVE_LIBM)
  • trunk/configure.ac

    r14382 r14383  
    453453     CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
    454454     CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DWIN32_LEAN_AND_MEAN"
    455      CPPFLAGS="$CPPFLAGS -D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1"
     455     # CPPFLAGS="$CPPFLAGS -D__USE_MINGW_ANSI_STDIO=1 -D__STDC_FORMAT_MACROS=1"
    456456     LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
    457457     transmissionlocaledir="locale"
  • trunk/libtransmission/transmission.h

    r14382 r14383  
    4545
    4646#ifndef PRId64
    47  #if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
     47 #ifdef _WIN32
    4848  #define PRId64 "I64"
    4949 #else
     
    5353
    5454#ifndef PRIu64
    55  #if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
     55 #ifdef _WIN32
    5656  #define PRIu64 "I64u"
    5757 #else
     
    6161
    6262#ifndef PRIu32
    63  #if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
     63 #ifdef _WIN32
    6464  #define PRIu32 "u"
    6565 #else
     
    6969
    7070#ifndef TR_PRIuSIZE
    71  #if defined (_MSC_VER) || (defined (__MINGW32__) && !defined (__USE_MINGW_ANSI_STDIO))
     71 #ifdef _WIN32
    7272  #define TR_PRIuSIZE "Iu"
    7373 #else
Note: See TracChangeset for help on using the changeset viewer.