From 740e0286d080b612c956bbe450041ea038333b2c Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 11 Jul 2020 22:24:37 -0500 Subject: [PATCH] [ox/std] Add OX_ALIGN4 --- deps/ox/src/ox/std/stddef.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deps/ox/src/ox/std/stddef.hpp b/deps/ox/src/ox/std/stddef.hpp index d9c43035..63eb53d3 100644 --- a/deps/ox/src/ox/std/stddef.hpp +++ b/deps/ox/src/ox/std/stddef.hpp @@ -19,3 +19,9 @@ #else #define OX_PACKED __attribute__((packed)) #endif + +#ifdef _MSC_VER +#define OX_ALIGN4 +#else +#define OX_ALIGN4 __attribute__((aligned(4))) +#endif