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.
This commit is contained in:
parent
f3ea834322
commit
9652efd107
@ -27,7 +27,6 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#define WINVER 0x0501
|
||||
#include <windows.h>
|
||||
|
||||
static int service_argc;
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -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 */
|
||||
|
@ -36,7 +36,6 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <glib.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -40,7 +40,6 @@
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -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 */
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "resolver.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define WINVER 0x0501
|
||||
#include <ws2tcpip.h>
|
||||
#include <winsock.h>
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user