From abc9d878207970d56ddc0a0d1a1acd16fb0cadcc Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Fri, 3 Jun 2022 23:13:51 +0200 Subject: [PATCH] Added EV_ALIGN Signed-off-by: Robear Selwans --- ev_macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ev_macros.h b/ev_macros.h index 6d96c83..c9e2802 100644 --- a/ev_macros.h +++ b/ev_macros.h @@ -53,11 +53,13 @@ # define EV_IMPORT __declspec(dllimport) # define EV_UNUSED # define EV_FORCEINLINE __forceinline +# define EV_ALIGN(x) __declspec(align(x)) #elif ( EV_CC_GCC || EV_CC_CLANG ) # define EV_EXPORT __attribute__((visibility("default"))) # define EV_IMPORT # define EV_UNUSED __attribute__((unused)) # define EV_FORCEINLINE inline __attribute__((always_inline)) +# define EV_ALIGN(x) __attribute__((aligned(x))) # if ( EV_CC_GCC ) # define EV_PRAGMA_CC_NAME GCC # define EV_WARNING_DISABLE_GCC(w) EV_PRAGMA(EV_PRAGMA_CC_NAME diagnostic ignored "-W"w)