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:
Wladimir J. van der Laan 2019-03-22 09:46:01 +01:00 committed by radare
parent 4000e7bf72
commit f4eac702d4

View File

@ -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__