Win32: Fix the macro for arm64 on mswin

Visual C defines `_M_`-prefixed macros for the target architectures.
This commit is contained in:
Nobuyoshi Nakada 2024-11-13 14:49:04 +09:00
parent 5a7a1a4a13
commit e4a4dea2c0
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-12-17 11:56:50 +00:00

View File

@ -756,7 +756,7 @@ dump_thread(void *arg)
frame.AddrFrame.Offset = context.Rbp;
frame.AddrStack.Mode = AddrModeFlat;
frame.AddrStack.Offset = context.Rsp;
#elif defined(__aarch64__)
#elif defined(_M_ARM64) || defined(__aarch64__)
mac = IMAGE_FILE_MACHINE_ARM64;
frame.AddrPC.Mode = AddrModeFlat;
frame.AddrPC.Offset = context.Pc;