aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/Net/OVR_BitStream.cpp
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_BitStream.cpp
parenta352ecb7e63304034ac93332cf0c4d9183df867e (diff)
Fix build for Windows/MingW64 ...
Diffstat (limited to 'LibOVR/Src/Net/OVR_BitStream.cpp')
-rw-r--r--LibOVR/Src/Net/OVR_BitStream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/LibOVR/Src/Net/OVR_BitStream.cpp b/LibOVR/Src/Net/OVR_BitStream.cpp
index 054f871..d7d5e73 100644
--- a/LibOVR/Src/Net/OVR_BitStream.cpp
+++ b/LibOVR/Src/Net/OVR_BitStream.cpp
@@ -27,6 +27,10 @@ limitations under the License.
#include "OVR_BitStream.h"
#ifdef 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>
#else
#include <arpa/inet.h>