From 5b08e0361e5c38f910444e48c1f0bb29ac3e9f69 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 17 Nov 2022 15:36:52 -0600 Subject: [PATCH] extmod/moduplatform: Fix MSVC x86_64 check. `_WIN64` is defined for all 64-bit targets, including Arm, so it doesn't work for detecting `x86_64`. We can use `_M_X64` instead. Signed-off-by: David Lechner --- extmod/moduplatform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extmod/moduplatform.h b/extmod/moduplatform.h index d911d33ddd..42ed4de248 100644 --- a/extmod/moduplatform.h +++ b/extmod/moduplatform.h @@ -37,7 +37,7 @@ #if defined(__ARM_ARCH) #define MICROPY_PLATFORM_ARCH "arm" -#elif defined(__x86_64__) || defined(_WIN64) +#elif defined(__x86_64__) || defined(_M_X64) #define MICROPY_PLATFORM_ARCH "x86_64" #elif defined(__i386__) || defined(_M_IX86) #define MICROPY_PLATFORM_ARCH "x86"