From 8b3f95cd1551cf1d426d2d3a07e8793fdb45a7c0 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 7 May 2023 16:36:49 +0200 Subject: [PATCH] Another MSVC compat fix Signed-off-by: falkTX --- source/modules/water/memory/Atomic.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/modules/water/memory/Atomic.h b/source/modules/water/memory/Atomic.h index 4247f80fe..85e4fb81d 100644 --- a/source/modules/water/memory/Atomic.h +++ b/source/modules/water/memory/Atomic.h @@ -168,7 +168,9 @@ public: This is exposed publicly in case you need to manipulate it directly for performance reasons. */ - #ifdef CARLA_OS_64BIT + #if defined(_MSC_VER) + __declspec (align (8)) + #elif defined(CARLA_OS_64BIT) __attribute__ ((aligned (8))) #else __attribute__ ((aligned (4)))