aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-16 22:46:03 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-16 22:46:03 -0500
commit3a67f20f0bc737e3efa05b369739326d08093ce8 (patch)
tree6da495101480f9166f0a27cf2e5ccd3b7d2521fe
parent799a428671bfac627fa8866dee2144bec07c206c (diff)
downloadlite-xl-plugin-manager-3a67f20f0bc737e3efa05b369739326d08093ce8.tar.gz
lite-xl-plugin-manager-3a67f20f0bc737e3efa05b369739326d08093ce8.zip
Updated architecture auto-detection.
-rw-r--r--src/lpm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 7e4fdc7..03c19f5 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1005,13 +1005,13 @@ static const luaL_Reg system_lib[] = {
#ifndef ARCH_PROCESSOR
- #if __x86_64__ || _WIN64 || __MINGW64__
+ #if defined(__x86_64__) || defined(_M_AMD64) || defined(__MINGW64__)
#define ARCH_PROCESSOR "x86_64"
- #elif __i386__
+ #elif defined(__i386__) || defined(_M_IX86) || defined(__MINGW32__)
#define ARCH_PROCESSOR "x86"
- #elif __aarch64__
+ #elif defined(__aarch64__) || defined(_M_ARM64) || defined (_M_ARM64EC)
#define ARCH_PROCESSOR "aarch64"
- #elif __arm__
+ #elif defined(__arm__) || defined(_M_ARM)
#define ARCH_PROCESSOR "arm"
#else
#error "Please define -DARCH_PROCESSOR."