Merge pull request #3860 from likema/fix-xxhash-aix-51
Fix building xxhash on AIX 5.1
This commit is contained in:
+15
-3
@@ -575,7 +575,11 @@ typedef uint32_t XXH32_hash_t;
|
|||||||
#elif !defined (__VMS) \
|
#elif !defined (__VMS) \
|
||||||
&& (defined (__cplusplus) \
|
&& (defined (__cplusplus) \
|
||||||
|| (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) )
|
|| (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;
|
typedef uint32_t XXH32_hash_t;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@@ -838,7 +842,11 @@ typedef uint64_t XXH64_hash_t;
|
|||||||
#elif !defined (__VMS) \
|
#elif !defined (__VMS) \
|
||||||
&& (defined (__cplusplus) \
|
&& (defined (__cplusplus) \
|
||||||
|| (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) )
|
|| (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;
|
typedef uint64_t XXH64_hash_t;
|
||||||
#else
|
#else
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
@@ -2426,7 +2434,11 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size)
|
|||||||
#if !defined (__VMS) \
|
#if !defined (__VMS) \
|
||||||
&& (defined (__cplusplus) \
|
&& (defined (__cplusplus) \
|
||||||
|| (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */) )
|
|| (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;
|
typedef uint8_t xxh_u8;
|
||||||
#else
|
#else
|
||||||
typedef unsigned char xxh_u8;
|
typedef unsigned char xxh_u8;
|
||||||
|
|||||||
Reference in New Issue
Block a user