aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--configure.ac1
-rw-r--r--src/main_win32.c1
-rw-r--r--src/server_socket.c1
-rw-r--r--src/socket_util.c1
5 files changed, 2 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 31bbc4ac1..b2bd52da4 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
ver 0.16.6 (2010/??/??)
* event_pipe: fix WIN32 regression
+* define WINVER in ./configure
ver 0.16.5 (2010/10/09)
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
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 */