From 96a1498654f4f9db0d15249666b817d204fccec2 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Fri, 24 Feb 2023 22:12:00 -0500 Subject: Fixed risc. --- src/lpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lpm.c b/src/lpm.c index c6d1e98..514549c 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -1058,9 +1058,9 @@ static const luaL_Reg system_lib[] = { #define ARCH_PROCESSOR "aarch64" #elif defined(__arm__) || defined(_M_ARM) #define ARCH_PROCESSOR "arm" - #edif __riscv_xlen == 32 + #elif defined(__riscv_xlen) && __riscv_xlen == 32 #define ARCH_PROCESSOR "riscv32" - #elif __riscv_xlen == 64 + #elif defined(__riscv_xlen) && __riscv_xlen == 64 #define ARCH_PROCESSOR "riscv64" #else #error "Please define -DARCH_PROCESSOR." -- cgit v1.2.3