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
main
Andrew Gallagher 6 years ago committed by Facebook Github Bot
parent d7a04383d1
commit 0148f717ff
  1. 9
      util/xxhash.h

@ -58,7 +58,15 @@ It depends on successfully passing SMHasher test set.
*/ */
#pragma once #pragma once
#include <stdlib.h> #include <stdlib.h>
#if !defined(__VMS) && \
(defined(__cplusplus) || \
(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */))
#include <stdint.h>
#endif
#if defined (__cplusplus) #if defined (__cplusplus)
namespace rocksdb { namespace rocksdb {
#endif #endif
@ -196,7 +204,6 @@ XXH64_hash_t XXH64_hashFromCanonical(const XXH64_canonical_t* src);
#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>
struct XXH64_state_s { struct XXH64_state_s {
uint64_t total_len; uint64_t total_len;

Loading…
Cancel
Save