From c30c46cd5f0d1f857fc38a335ca499cc024e0c80 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 13 Oct 2011 09:23:32 +0200 Subject: 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"). --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c47c6d9e9..478639e7b 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- cgit v1.2.3