From 0148f717ff7e538df0644c7dfc5c53ff95d72a12 Mon Sep 17 00:00:00 2001 From: Andrew Gallagher Date: Tue, 6 Nov 2018 17:16:35 -0800 Subject: [PATCH] Move `#include` outside of namespace (#4629) Summary: clang modules warns about `#include`s inside of namespaces. Pull Request resolved: https://github.com/facebook/rocksdb/pull/4629 Reviewed By: ajkr Differential Revision: D12927333 Pulled By: andrewjcg fbshipit-source-id: a9e0b069e63d8224f78b7c3be1c3acf09bb83d3f --- util/xxhash.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/util/xxhash.h b/util/xxhash.h index 665dfcc81..88352ac75 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;