Commit a60986caa8206e50b1ea5f8cb4821e40e18c572b

Cameron Gutman 2022-03-27T19:03:54

Correct default structure packing on Windows ARM64 See issue #5454 for details

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/include/begin_code.h b/include/begin_code.h
index 63f064b..b1b1a3a 100644
--- a/include/begin_code.h
+++ b/include/begin_code.h
@@ -107,7 +107,7 @@
 #ifdef __BORLANDC__
 #pragma nopackwarning
 #endif
-#ifdef _M_X64
+#ifdef _WIN64
 /* Use 8-byte alignment on 64-bit architectures, so pointers are aligned */
 #pragma pack(push,8)
 #else