From 7d73c4910768538e8c6d529782b2e0549049c521 Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Mon, 21 Jul 2025 15:28:58 +0200 Subject: [PATCH] Unconditionally enable HXCPP_ALIGN_ALLOC. This is required to be able to safely use `std::atomic` inside hxcpp-allocated objects. --- include/hxcpp.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/hxcpp.h b/include/hxcpp.h index 008f13545..e29d62911 100755 --- a/include/hxcpp.h +++ b/include/hxcpp.h @@ -68,11 +68,7 @@ #define HXCPP_ALIGN_FLOAT #endif -// Must allign allocs to 8 bytes to match floating point requirement? -// Ints must br read on 4-byte boundary -#if (!defined(HXCPP_ALIGN_FLOAT) && (defined(EMSCRIPTEN) || defined(GCW0)) ) - #define HXCPP_ALIGN_ALLOC -#endif +#define HXCPP_ALIGN_ALLOC // Some compilers are over-enthusiastic about what they #define ...