summaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/Net/OVR_Socket.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-07-15 21:12:04 +0200
committerSven Gothel <[email protected]>2015-07-15 21:12:04 +0200
commit1f262ca2dbe00ba761e9b91994e93fee65d6efc1 (patch)
tree55c5b013ac5dd5e1edee5cc1ed09739a914de3e0 /LibOVR/Src/Net/OVR_Socket.h
parenta352ecb7e63304034ac93332cf0c4d9183df867e (diff)
Fix build for Windows/MingW64 ...
Diffstat (limited to 'LibOVR/Src/Net/OVR_Socket.h')
-rw-r--r--LibOVR/Src/Net/OVR_Socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/LibOVR/Src/Net/OVR_Socket.h b/LibOVR/Src/Net/OVR_Socket.h
index df6407f..c1ea75c 100644
--- a/LibOVR/Src/Net/OVR_Socket.h
+++ b/LibOVR/Src/Net/OVR_Socket.h
@@ -36,6 +36,10 @@ limitations under the License.
// OS-specific socket headers
#if defined(OVR_OS_WIN32)
+#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"