diff options
author | Ruslan Bukin <br@FreeBSD.org> | 2017-04-19 15:24:33 +0000 |
---|---|---|
committer | Ruslan Bukin <br@FreeBSD.org> | 2017-04-19 15:24:33 +0000 |
commit | 2452e16e5baa1044e9dbe91e34617f8dd1326d0f (patch) | |
tree | 51b62e878741e083559f8e83b772c737246fd25d /contrib/zstd/lib | |
parent | 5d01277f596ee9b05b6b19b6a55fe84668ffc100 (diff) | |
download | src-2452e16e5baa1044e9dbe91e34617f8dd1326d0f.tar.gz src-2452e16e5baa1044e9dbe91e34617f8dd1326d0f.zip |
Don't use __builtin_bswap for RISC-V due to undefined reference
in compiler.
This unbreaks RISC-V world build.
Sponsored by: DARPA, AFRL
Notes
Notes:
svn path=/head/; revision=317144
Diffstat (limited to 'contrib/zstd/lib')
-rw-r--r-- | contrib/zstd/lib/common/xxhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/zstd/lib/common/xxhash.c b/contrib/zstd/lib/common/xxhash.c index eb44222c5fce..d59a22a06381 100644 --- a/contrib/zstd/lib/common/xxhash.c +++ b/contrib/zstd/lib/common/xxhash.c @@ -206,7 +206,7 @@ static U64 XXH_read64(const void* memPtr) #if defined(_MSC_VER) /* Visual Studio */ # define XXH_swap32 _byteswap_ulong # define XXH_swap64 _byteswap_uint64 -#elif GCC_VERSION >= 403 +#elif (GCC_VERSION >= 403 && !defined(__riscv__)) # define XXH_swap32 __builtin_bswap32 # define XXH_swap64 __builtin_bswap64 #else |