vcpkg/ports/zydis/fix-arm64-build.patch

27 lines
968 B
Diff
Raw Normal View History

2022-10-21 03:52:57 +08:00
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 */