aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2017-12-03 21:45:08 +0100
committerQi Wang <interwq@gmail.com>2017-12-09 10:10:42 -0800
commit749caf14ae73a9ab1c48e538a8af09addbb35ee7 (patch)
tree0905ad233e686c01d22386e4b28c17c6c0cee51c /include
parent955b1d9cc574647d3d3dfb474b47b51b3a81453d (diff)
downloadplatform_external_jemalloc_new-749caf14ae73a9ab1c48e538a8af09addbb35ee7.tar.gz
platform_external_jemalloc_new-749caf14ae73a9ab1c48e538a8af09addbb35ee7.tar.bz2
platform_external_jemalloc_new-749caf14ae73a9ab1c48e538a8af09addbb35ee7.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/jemalloc_internal_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_types.h b/include/jemalloc/internal/jemalloc_internal_types.h
index 6b987d6f..1b750b12 100644
--- a/include/jemalloc/internal/jemalloc_internal_types.h
+++ b/include/jemalloc/internal/jemalloc_internal_types.h
@@ -94,7 +94,7 @@ typedef int malloc_cpuid_t;
# ifdef __powerpc__
# define LG_QUANTUM 4
# endif
-# ifdef __riscv__
+# if defined(__riscv) || defined(__riscv__)
# define LG_QUANTUM 4
# endif
# ifdef __s390__