configure.ac: define WINVER
Ensure that WINVER is defined early enough, so other system headers won't fall back to their default value. Specifically, this solves a build failure (-Werror) with mingw-w64 ("WINVER redefined").
This commit is contained in:
@@ -68,6 +68,7 @@ AC_CANONICAL_HOST
|
||||
|
||||
case "$host_os" in
|
||||
mingw32* | windows*)
|
||||
AM_CPPFLAGS="$AM_CPPFLAGS -DWINVER=0x0501"
|
||||
MPD_LIBS="$MPD_LIBS -lws2_32"
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user