From 9cfce4e33e2b745c15b465d5da932353036e7bcf Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 1 Sep 2023 11:49:50 -0700 Subject: PhysX: Check for SSE to define __intXX_t This helps to compile on x86 platforms as these defines are not available there Pick-to: 6.5 6.6 Change-Id: I3215166f3817a47f45985450c58703b8eef3c6e8 Reviewed-by: Jonas Karlsson --- ...1-PhysX-Check-for-SSE-to-define-__intXX_t.patch | 27 ++++++++++++++++++++++ .../foundation/include/unix/sse2/PsUnixSse2AoS.h | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/3rdparty/PhysX/0001-PhysX-Check-for-SSE-to-define-__intXX_t.patch (limited to 'src') diff --git a/src/3rdparty/PhysX/0001-PhysX-Check-for-SSE-to-define-__intXX_t.patch b/src/3rdparty/PhysX/0001-PhysX-Check-for-SSE-to-define-__intXX_t.patch new file mode 100644 index 0000000..051af99 --- /dev/null +++ b/src/3rdparty/PhysX/0001-PhysX-Check-for-SSE-to-define-__intXX_t.patch @@ -0,0 +1,27 @@ +From 4245fd4922c9931fa2c19989fa8f0d2cad0512a0 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 1 Sep 2023 11:49:50 -0700 +Subject: [PATCH] PhysX: Check for SSE to define __intXX_t + +This helps to compile on x86 platforms as these defines are not +available there +--- + .../PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h b/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h +index 847a21a..9a4fbb8 100644 +--- a/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h ++++ b/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h +@@ -43,7 +43,7 @@ namespace shdfnd + namespace aos + { + +-#if PX_EMSCRIPTEN ++#if PX_EMSCRIPTEN || PX_SSE2 + typedef int8_t __int8_t; + typedef int16_t __int16_t; + typedef int32_t __int32_t; +-- +2.42.0 + diff --git a/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h b/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h index 847a21a..9a4fbb8 100644 --- a/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h +++ b/src/3rdparty/PhysX/source/foundation/include/unix/sse2/PsUnixSse2AoS.h @@ -43,7 +43,7 @@ namespace shdfnd namespace aos { -#if PX_EMSCRIPTEN +#if PX_EMSCRIPTEN || PX_SSE2 typedef int8_t __int8_t; typedef int16_t __int16_t; typedef int32_t __int32_t; -- cgit v1.2.3