Browse Source

Merge pull request #34331 from akien-mga/vhacd-fix-uwp-arm-build

vhacd: Patch to fix UWP ARM build
Rémi Verschelde 5 years ago
parent
commit
81f513ddc6
2 changed files with 20 additions and 1 deletions
  1. 16 0
      thirdparty/vhacd/0004-fix-uwp-arm-build.patch
  2. 4 1
      thirdparty/vhacd/inc/btScalar.h

+ 16 - 0
thirdparty/vhacd/0004-fix-uwp-arm-build.patch

@@ -0,0 +1,16 @@
+diff --git a/thirdparty/vhacd/inc/btScalar.h b/thirdparty/vhacd/inc/btScalar.h
+index 3999a71521..4c9e0cf7ab 100644
+--- a/thirdparty/vhacd/inc/btScalar.h
++++ b/thirdparty/vhacd/inc/btScalar.h
+@@ -72,7 +72,10 @@ inline int32_t btGetVersion()
+ #define btFsel(a, b, c) __fsel((a), (b), (c))
+ #else
+ 
+-#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
++// -- GODOT start --
++//#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
++#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION)) && (!defined(_M_ARM))
++// -- GODOT end --
+ #define BT_USE_SSE
+ #include <emmintrin.h>
+ #endif

+ 4 - 1
thirdparty/vhacd/inc/btScalar.h

@@ -72,7 +72,10 @@ inline int32_t btGetVersion()
 #define btFsel(a, b, c) __fsel((a), (b), (c))
 #define btFsel(a, b, c) __fsel((a), (b), (c))
 #else
 #else
 
 
-#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
+// -- GODOT start --
+//#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION))
+#if (defined(_WIN32) && (_MSC_VER) && _MSC_VER >= 1400) && (!defined(BT_USE_DOUBLE_PRECISION)) && (!defined(_M_ARM))
+// -- GODOT end --
 #define BT_USE_SSE
 #define BT_USE_SSE
 #include <emmintrin.h>
 #include <emmintrin.h>
 #endif
 #endif