aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-09 17:52:56 +0200
committerMax Kellermann <max@duempel.org>2011-10-09 17:52:56 +0200
commit9652efd107f3132e579784176581d962e955bc89 (patch)
tree080a2422c7c12c1e3005d30f4268fa7be275eb91 /src
parentf3ea834322de7f0400bb42b8f8019d6f8c78c93a (diff)
downloadmpd-9652efd107f3132e579784176581d962e955bc89.tar.gz
mpd-9652efd107f3132e579784176581d962e955bc89.tar.xz
mpd-9652efd107f3132e579784176581d962e955bc89.zip
don't define WINVER in *.c files
In a C file, that is too late, because _mingw.h defaults to 0x0502, and ours would be illegal redefintion.
Diffstat (limited to '')
-rw-r--r--src/main_win32.c1
-rw-r--r--src/ntp_server.c1
-rw-r--r--src/resolver.c1
-rw-r--r--src/rtsp_client.c1
-rw-r--r--src/rtsp_client.h1
-rw-r--r--src/server_socket.c1
-rw-r--r--src/socket_util.c1
-rw-r--r--src/tcp_connect.c1
-rw-r--r--src/tcp_socket.c1
-rw-r--r--src/udp_server.c1
10 files changed, 0 insertions, 10 deletions
diff --git a/src/main_win32.c b/src/main_win32.c
index edac8a8dc..aac7ad886 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/ntp_server.c b/src/ntp_server.c
index c33c0a933..f31a2d845 100644
--- a/src/ntp_server.c
+++ b/src/ntp_server.c
@@ -29,7 +29,6 @@
#include <sys/time.h>
#ifdef WIN32
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else
diff --git a/src/resolver.c b/src/resolver.c
index e50642b1e..5d8d299c6 100644
--- a/src/resolver.c
+++ b/src/resolver.c
@@ -25,7 +25,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 */
diff --git a/src/rtsp_client.c b/src/rtsp_client.c
index 864b3a7f4..66b7244a2 100644
--- a/src/rtsp_client.c
+++ b/src/rtsp_client.c
@@ -36,7 +36,6 @@
#include <sys/time.h>
#ifdef WIN32
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else
diff --git a/src/rtsp_client.h b/src/rtsp_client.h
index 5c8425248..21660e609 100644
--- a/src/rtsp_client.h
+++ b/src/rtsp_client.h
@@ -28,7 +28,6 @@
#include <glib.h>
#ifdef WIN32
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else
diff --git a/src/server_socket.c b/src/server_socket.c
index 998786d7b..89663d8b8 100644
--- a/src/server_socket.c
+++ b/src/server_socket.c
@@ -40,7 +40,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 e08b60735..a06a0cbd5 100644
--- a/src/socket_util.c
+++ b/src/socket_util.c
@@ -27,7 +27,6 @@
#ifndef G_OS_WIN32
#include <sys/socket.h>
#else /* G_OS_WIN32 */
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#endif /* G_OS_WIN32 */
diff --git a/src/tcp_connect.c b/src/tcp_connect.c
index bea823955..88e2348e6 100644
--- a/src/tcp_connect.c
+++ b/src/tcp_connect.c
@@ -28,7 +28,6 @@
#include <errno.h>
#ifdef WIN32
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else
diff --git a/src/tcp_socket.c b/src/tcp_socket.c
index b64796fe6..bfed4dc56 100644
--- a/src/tcp_socket.c
+++ b/src/tcp_socket.c
@@ -26,7 +26,6 @@
#include <string.h>
#ifdef WIN32
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else
diff --git a/src/udp_server.c b/src/udp_server.c
index e1c0b1545..e70f785e2 100644
--- a/src/udp_server.c
+++ b/src/udp_server.c
@@ -28,7 +28,6 @@
#include <errno.h>
#ifdef WIN32
-#define WINVER 0x0501
#include <ws2tcpip.h>
#include <winsock.h>
#else