aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-13 09:23:32 +0200
committerMax Kellermann <max@duempel.org>2011-10-13 09:23:32 +0200
commitc30c46cd5f0d1f857fc38a335ca499cc024e0c80 (patch)
treeed80e3cebf92ddc365be006ce7272daaccb1d186 /src
parentd3940179261cd4fe3ba632cf7d012917e0fbaa87 (diff)
downloadmpd-c30c46cd5f0d1f857fc38a335ca499cc024e0c80.tar.gz
mpd-c30c46cd5f0d1f857fc38a335ca499cc024e0c80.tar.xz
mpd-c30c46cd5f0d1f857fc38a335ca499cc024e0c80.zip
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").
Diffstat (limited to '')
-rw-r--r--src/main_win32.c1
-rw-r--r--src/server_socket.c1
-rw-r--r--src/socket_util.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/main_win32.c b/src/main_win32.c
index 543d8ba81..e1ddb53f5 100644
--- a/src/main_win32.c
+++ b/src/main_win32.c
@@ -27,7 +27,6 @@
#include <glib.h>
-#define WINVER 0x0501
#include <windows.h>
static int service_argc;
diff --git a/src/server_socket.c b/src/server_socket.c
index b4114d2d9..482e0cda1 100644
--- a/src/server_socket.c
+++ b/src/server_socket.c
@@ -34,7 +34,6 @@
#include <assert.h>
#ifdef WIN32
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else
diff --git a/src/socket_util.c b/src/socket_util.c
index 3f7075ed3..d1651066f 100644
--- a/src/socket_util.c
+++ b/src/socket_util.c
@@ -28,7 +28,6 @@
#include <sys/socket.h>
#include <netdb.h>
#else /* G_OS_WIN32 */
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#endif /* G_OS_WIN32 */