Patch for bug in libbullet on Cygwin

mdmkolbe
Posts: 2
Joined: Sat Jun 03, 2006 10:27 pm

Patch for bug in libbullet on Cygwin

Post by mdmkolbe »

There is a bug in the header /bullet-1.5e/LinearMath/SimdScalar.h what prevents it from compiling on Cygwin. Bellow is a patch that fixes this as well as moving some MSVC specific #pragma's into the MSVC specific part thus eliminating a couple of spurious warnings.

Code: Select all

--- SimdScalar.h.orig   2006-06-03 14:13:51.105000000 -0400
+++ SimdScalar.h        2006-06-03 18:15:48.433125000 -0400
@@ -27,12 +27,12 @@
 #include <float.h>
 
 #ifdef WIN32
-#pragma warning(disable:4530)
-#pragma warning(disable:4996)
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__CYGWIN__)
 #define SIMD_FORCE_INLINE inline
 #else
 #define SIMD_FORCE_INLINE __forceinline
+#pragma warning(disable:4530)
+#pragma warning(disable:4996)
 #endif //__MINGW32__
 
 //#define ATTRIBUTE_ALIGNED16(a) __declspec(align(16)) a
mdmkolbe
Posts: 2
Joined: Sat Jun 03, 2006 10:27 pm

Fixed in r81

Post by mdmkolbe »

This issue appears to be fixed by revision r81 in the repository. Thanks.