fix zydis alignment issue during build for intel macs (#3312)

Fix zydis alignment issues when building on Intel macOS builds was
discussed with zydis devs https://github.com/zyantific/zydis/issues/474

Verified locally that I can run open goal with the change.

Co-authored-by: JamesAldridge <jamesaldridge@gmail.com>
This commit is contained in:
James Aldridge 2024-01-17 00:01:55 +00:00 committed by GitHub
parent 1dba36c614
commit ed6639ee60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ extern "C" {
/* Enums and types */ /* Enums and types */
/* ============================================================================================== */ /* ============================================================================================== */
#if !(defined(ZYAN_AARCH64) && defined(ZYAN_APPLE)) #if !defined(ZYAN_APPLE)
# pragma pack(push, 1) # pragma pack(push, 1)
#endif #endif
@ -68,7 +68,7 @@ typedef struct ZydisShortString_
ZyanU8 size; ZyanU8 size;
} ZydisShortString; } ZydisShortString;
#if !(defined(ZYAN_AARCH64) && defined(ZYAN_APPLE)) #if !defined(ZYAN_APPLE)
# pragma pack(pop) # pragma pack(pop)
#endif #endif