diff --git a/util/xxhash.h b/util/xxhash.h index 665dfcc81a..88352ac75f 100644 --- a/util/xxhash.h +++ b/util/xxhash.h @@ -58,7 +58,15 @@ It depends on successfully passing SMHasher test set. */ #pragma once + #include + +#if !defined(__VMS) && \ + (defined(__cplusplus) || \ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */)) +#include +#endif + #if defined (__cplusplus) namespace rocksdb { #endif @@ -196,7 +204,6 @@ XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src); #if !defined(__VMS) && \ (defined(__cplusplus) || \ (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */)) -#include struct XXH64_state_s { uint64_t total_len;