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>
This commit is contained in:
parent
67e919db32
commit
5b08e0361e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user