diff options
author | David Lechner <david@pybricks.com> | 2022-11-17 15:36:52 -0600 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-11-18 15:13:00 +1100 |
commit | 5b08e0361e5c38f910444e48c1f0bb29ac3e9f69 (patch) | |
tree | 51f27014cce2e0fd6619b7ea768a84e72631c644 /extmod/moduplatform.h | |
parent | 67e919db329bb4db079514bb0c8cf2922affe6a3 (diff) |
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 <david@pybricks.com>
Diffstat (limited to 'extmod/moduplatform.h')
-rw-r--r-- | extmod/moduplatform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/moduplatform.h b/extmod/moduplatform.h index d911d33dd..42ed4de24 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" |