From 0c587e5e5ff8be8f7938484d761beae46ebf8d4c Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 25 Mar 2025 17:38:07 +0100 Subject: [PATCH] fix: compilation on msvc --- src/Common/Game/T6/T6_Assets.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/Common/Game/T6/T6_Assets.h b/src/Common/Game/T6/T6_Assets.h index 95800cf3..e2332161 100644 --- a/src/Common/Game/T6/T6_Assets.h +++ b/src/Common/Game/T6/T6_Assets.h @@ -3814,7 +3814,8 @@ namespace T6 uint16_t dynEntId; }; - union gcc_align(8) __m128 + // Usually __m128, but that is not portable + union gcc_align(8) custom_m128 { float m128_f32[4]; uint64_t m128_u64[2]; @@ -3827,19 +3828,12 @@ namespace T6 unsigned int m128_u32[4]; }; - struct vector3 - { - __m128 x; - __m128 y; - __m128 z; - }; - struct vector4 { - __m128 x; - __m128 y; - __m128 z; - __m128 w; + custom_m128 x; + custom_m128 y; + custom_m128 z; + custom_m128 w; }; struct type_align(16) SSkinInstance