From 1f262ca2dbe00ba761e9b91994e93fee65d6efc1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 15 Jul 2015 21:12:04 +0200 Subject: Fix build for Windows/MingW64 ... --- LibOVR/Src/Net/OVR_BitStream.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'LibOVR/Src/Net/OVR_BitStream.h') diff --git a/LibOVR/Src/Net/OVR_BitStream.h b/LibOVR/Src/Net/OVR_BitStream.h index 4e2d2ef..83c4a32 100644 --- a/LibOVR/Src/Net/OVR_BitStream.h +++ b/LibOVR/Src/Net/OVR_BitStream.h @@ -28,6 +28,9 @@ limitations under the License. #ifndef OVR_Bitstream_h #define OVR_Bitstream_h +#if defined(OVR_CC_MSVC) +#include +#endif #include #include "Kernel/OVR_Types.h" #include "Kernel/OVR_Std.h" @@ -1557,7 +1560,7 @@ void BitStream::WriteOrthMatrix( if (qx < 0.0) qx=0.0; if (qy < 0.0) qy=0.0; if (qz < 0.0) qz=0.0; -#ifdef OVR_OS_WIN32 +#if defined(OVR_OS_WIN32) && defined(OVR_CC_MSVC) qx = _copysign( (double) qx, (double) (m21 - m12) ); qy = _copysign( (double) qy, (double) (m02 - m20) ); qz = _copysign( (double) qz, (double) (m10 - m01) ); -- cgit v1.2.3