Skip to content

Commit daffb7b

Browse files
Unconditionally enable HXCPP_ALIGN_ALLOC. (#1246)
This is required to be able to safely use `std::atomic` inside hxcpp-allocated objects.
1 parent 1618253 commit daffb7b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/hxcpp.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@
6868
#define HXCPP_ALIGN_FLOAT
6969
#endif
7070

71-
// Must allign allocs to 8 bytes to match floating point requirement?
72-
// Ints must br read on 4-byte boundary
73-
#if (!defined(HXCPP_ALIGN_FLOAT) && (defined(EMSCRIPTEN) || defined(GCW0)) )
74-
#define HXCPP_ALIGN_ALLOC
75-
#endif
71+
#define HXCPP_ALIGN_ALLOC
7672

7773

7874
// Some compilers are over-enthusiastic about what they #define ...

0 commit comments

Comments
 (0)