mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
Fix build on newer RISC-V compilers (#13459)
On gcc 9.x, `__riscv__` is no longer defined but `__riscv` is. This is documented under C/C++ preprocessor definitions on https://github.com/riscv/riscv-toolchain-conventions
This commit is contained in:
parent
4000e7bf72
commit
f4eac702d4
@ -268,7 +268,7 @@ typedef unsigned szind_t;
|
||||
# ifdef __powerpc__
|
||||
# define LG_QUANTUM 4
|
||||
# endif
|
||||
# ifdef __riscv__
|
||||
# if defined(__riscv) || defined(__riscv__)
|
||||
# define LG_QUANTUM 4
|
||||
# endif
|
||||
# ifdef __s390__
|
||||
|
Loading…
x
Reference in New Issue
Block a user