wbemprox: Don't define USE_WS_PREFIX on MinGW.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-02-01 14:18:49 +01:00 committed by Alexandre Julliard
parent 848f478091
commit d11a07ec7c
2 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DUSE_WS_PREFIX
MODULE = wbemprox.dll
IMPORTS = winspool version iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 ws2_32 rpcrt4

View File

@ -31,8 +31,17 @@
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#ifdef __MINGW32__
# include "winsock2.h"
# include "ws2tcpip.h"
# define WS_AF_UNSPEC AF_UNSPEC
# define WS_NI_MAXHOST NI_MAXHOST
# define WS_NI_NAMEREQD NI_NAMEREQD
#else
# define USE_WS_PREFIX
# include "winsock2.h"
# include "ws2tcpip.h"
#endif
#include "initguid.h"
#include "wbemcli.h"
#include "wbemprov.h"