Skip to content

Commit bc0ad02

Browse files
Tachi107yuzibo
andcommitted
fix(Defines): also check for _M_RISCV64
The patch submitted by Bo in https://bugs.debian.org/1015787 and zyantific#48 also checked for this additional define, but it was not part of 3e95307. This patch adds the additional check. Co-authored-by: Bo YU <[email protected]>
1 parent a754e11 commit bc0ad02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/Zycore/Defines.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
# define ZYAN_PPC64
141141
#elif defined(__powerpc__)
142142
# define ZYAN_PPC
143-
#elif defined(__riscv) && __riscv_xlen == 64
143+
#elif defined(_M_RISCV64) || defined(__riscv) && __riscv_xlen == 64
144144
# define ZYAN_RISCV64
145145
#else
146146
# error "Unsupported architecture detected"

0 commit comments

Comments
 (0)