mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 16:40:27 +00:00
Add RISC-V 64 bit detection in janet.h
This commit is contained in:
parent
8c4cc4e671
commit
6ae3bdb25c
@ -111,7 +111,8 @@ extern "C" {
|
||||
|| (defined(__sparc__) && defined(__arch64__) || defined (__sparcv9)) /* BE */ \
|
||||
|| defined(__s390x__) /* S390 64-bit (BE) */ \
|
||||
|| (defined(__ppc64__) || defined(__PPC64__)) \
|
||||
|| defined(__aarch64__) /* ARM 64-bit */
|
||||
|| defined(__aarch64__) /* ARM 64-bit */ \
|
||||
|| (defined(__riscv) && (__riscv_xlen == 64)) /* RISC-V 64-bit */
|
||||
#define JANET_64 1
|
||||
#else
|
||||
#define JANET_32 1
|
||||
|
Loading…
Reference in New Issue
Block a user