diff options
Diffstat (limited to 'LibOVR/Src/Net/OVR_Win32_Socket.h')
-rw-r--r-- | LibOVR/Src/Net/OVR_Win32_Socket.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LibOVR/Src/Net/OVR_Win32_Socket.h b/LibOVR/Src/Net/OVR_Win32_Socket.h index ed0a624..94c34ef 100644 --- a/LibOVR/Src/Net/OVR_Win32_Socket.h +++ b/LibOVR/Src/Net/OVR_Win32_Socket.h @@ -31,6 +31,10 @@ limitations under the License. #include "OVR_Socket.h" #include "OVR_BitStream.h" +#if defined(_WINSOCKAPI_) && !defined(OVR_CC_MSVC) && !defined(_WINSOCK2API_) +/** Silent warning using mingw64, _WINSOCKAPI_ is disabled in ./LibOVRKernel/Src/Kernel/OVR_Win32_IncludeWindows.h */ +#undef _WINSOCKAPI_ +#endif /* defined(_WINSOCKAPI_) && !defined(OVR_CC_MSVC) && !defined(_WINSOCK2API_) */ #include <WinSock2.h> #include <WS2tcpip.h> #include "Kernel/OVR_Win32_IncludeWindows.h" |