Also use __riscv to detect builds for RISC-V CPUs.

According to the RISC-V toolchain conventions, __riscv__ is the old
spelling of this definition. __riscv should be used going forward.

https://github.com/riscv/riscv-toolchain-conventions#cc-preprocessor-definitions
This commit is contained in:
Ed Schouten 2017-12-03 21:45:08 +01:00 committed by Qi Wang
parent 955b1d9cc5
commit 749caf14ae

View File

@ -94,7 +94,7 @@ typedef int malloc_cpuid_t;
# ifdef __powerpc__ # ifdef __powerpc__
# define LG_QUANTUM 4 # define LG_QUANTUM 4
# endif # endif
# ifdef __riscv__ # if defined(__riscv) || defined(__riscv__)
# define LG_QUANTUM 4 # define LG_QUANTUM 4
# endif # endif
# ifdef __s390__ # ifdef __s390__