diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2024-03-09 15:34:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 15:34:02 -0800 |
commit | 372fddf4e6a6db6776b745f31c02a7c8c8dfc83f (patch) | |
tree | 1485c0742f402c547211d2818a4a071e1cfebbc9 /lib | |
parent | cb596b024f2d8b08103e911bab4962893e6b10ea (diff) | |
parent | 66269e74a00e531a5f27fcb4fd65eb061d02dc5c (diff) | |
download | zstd-372fddf4e6a6db6776b745f31c02a7c8c8dfc83f.tar.gz |
Merge pull request #3860 from likema/fix-xxhash-aix-51
Fix building xxhash on AIX 5.1
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/xxhash.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/common/xxhash.h b/lib/common/xxhash.h index e5ed3dc0..2d3d864b 100644 --- a/lib/common/xxhash.h +++ b/lib/common/xxhash.h @@ -575,7 +575,11 @@ typedef uint32_t XXH32_hash_t; #elif !defined (__VMS) \ && (defined (__cplusplus) \ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include <stdint.h> +# ifdef _AIX +# include <inttypes.h> +# else +# include <stdint.h> +# endif typedef uint32_t XXH32_hash_t; #else @@ -838,7 +842,11 @@ typedef uint64_t XXH64_hash_t; #elif !defined (__VMS) \ && (defined (__cplusplus) \ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include <stdint.h> +# ifdef _AIX +# include <inttypes.h> +# else +# include <stdint.h> +# endif typedef uint64_t XXH64_hash_t; #else # include <limits.h> @@ -2426,7 +2434,11 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size) #if !defined (__VMS) \ && (defined (__cplusplus) \ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include <stdint.h> +# ifdef _AIX +# include <inttypes.h> +# else +# include <stdint.h> +# endif typedef uint8_t xxh_u8; #else typedef unsigned char xxh_u8; |