Commit d11a07ec authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Don't define USE_WS_PREFIX on MinGW.

parent 848f4780
EXTRADEFS = -DUSE_WS_PREFIX
MODULE = wbemprox.dll MODULE = wbemprox.dll
IMPORTS = winspool version iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 ws2_32 rpcrt4 IMPORTS = winspool version iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 ws2_32 rpcrt4
......
...@@ -31,8 +31,17 @@ ...@@ -31,8 +31,17 @@
#define WIN32_NO_STATUS #define WIN32_NO_STATUS
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winsock2.h" #ifdef __MINGW32__
#include "ws2tcpip.h" # 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 "initguid.h"
#include "wbemcli.h" #include "wbemcli.h"
#include "wbemprov.h" #include "wbemprov.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment