Changeset 14382 for trunk/configure.ac


Ignore:
Timestamp:
Dec 13, 2014, 3:22:39 PM (7 years ago)
Author:
mikedld
Message:

Fix compilation on Windows

This should not affect non-Win32 platforms in any way.
As for Win32 (both MinGW and MSVC), this should hopefully allow for
unpatched compilation. Correct functioning is not yet guaranteed though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r14363 r14382  
    452452     have_msw="yes"
    453453     CXXFLAGS="$CXXFLAGS -mms-bitfields -mwin32 -mwindows"
    454      CPPFLAGS="$CPPFLAGS -DWIN32_LEAN_AND_MEAN"
     454     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"
    455456     LIBS="$LIBS -liphlpapi -lshell32 -lws2_32"
    456457     transmissionlocaledir="locale"
Note: See TracChangeset for help on using the changeset viewer.