configure.ac: enable WIN32_LEAN_AND_MEAN on Windows

This commit is contained in:
Max Kellermann
2013-01-11 11:06:16 +01:00
parent a98aa66620
commit 49f3855407
4 changed files with 4 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ mingw32* | windows*)
src/win/mpd_win32_rc.rc
])
AC_CHECK_TOOL(WINDRES, windres)
AM_CPPFLAGS="$AM_CPPFLAGS -DWIN32_LEAN_AND_MEAN"
AM_CPPFLAGS="$AM_CPPFLAGS -DWINVER=0x0501"
LIBS="$LIBS -lws2_32"
HAVE_WINDOWS=1