From: Like Ma Date: Sat, 13 Jan 2024 07:36:20 +0000 (+0800) Subject: Fix building xxhash on AIX 5.1 X-Git-Tag: v1.5.6^2~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66269e74a00e531a5f27fcb4fd65eb061d02dc5c;p=thirdparty%2Fzstd.git Fix building xxhash on AIX 5.1 --- diff --git a/lib/common/xxhash.h b/lib/common/xxhash.h index 424ed19b8..449bd5f08 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 +# ifdef _AIX +# include +# else +# include +# endif typedef uint32_t XXH32_hash_t; #else @@ -849,7 +853,11 @@ typedef uint64_t XXH64_hash_t; #elif !defined (__VMS) \ && (defined (__cplusplus) \ || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) ) -# include +# ifdef _AIX +# include +# else +# include +# endif typedef uint64_t XXH64_hash_t; #else # include @@ -2465,7 +2473,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 +# ifdef _AIX +# include +# else +# include +# endif typedef uint8_t xxh_u8; #else typedef unsigned char xxh_u8;