diff --git a/include/Zydis/ShortString.h b/include/Zydis/ShortString.h index bed45af6..566d673a 100644 --- a/include/Zydis/ShortString.h +++ b/include/Zydis/ShortString.h @@ -45,7 +45,9 @@ extern "C" { /* Enums and types */ /* ============================================================================================== */ -#pragma pack(push, 1) +#if !(defined(ZYAN_AARCH64) && defined(ZYAN_APPLE)) +# pragma pack(push, 1) +#endif /** * Defines the `ZydisShortString` struct. @@ -67,7 +69,9 @@ typedef struct ZydisShortString_ ZyanU8 size; } ZydisShortString; -#pragma pack(pop) +#if !(defined(ZYAN_AARCH64) && defined(ZYAN_APPLE)) +# pragma pack(pop) +#endif /* ============================================================================================== */ /* Macros */