From 43a7c3168f3e6a0c3854aefc904587e7adc65079 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 11 Jul 2020 23:40:16 -0500 Subject: [PATCH] [ox/std] Add OX_ALIGN8 (synced from 7b7a8d75b44fce4917916452b00f9ad590d85168) --- src/ox/std/stddef.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ox/std/stddef.hpp b/src/ox/std/stddef.hpp index 63eb53d3b..733d8d8ec 100644 --- a/src/ox/std/stddef.hpp +++ b/src/ox/std/stddef.hpp @@ -25,3 +25,9 @@ #else #define OX_ALIGN4 __attribute__((aligned(4))) #endif + +#ifdef _MSC_VER +#define OX_ALIGN8 +#else +#define OX_ALIGN8 __attribute__((aligned(8))) +#endif