Skip to content

Commit

Permalink
Move #include outside of namespace (facebook#4629)
Browse files Browse the repository at this point in the history
Summary:
clang modules warns about `#include`s inside of namespaces.
Pull Request resolved: facebook#4629

Reviewed By: ajkr

Differential Revision: D12927333

Pulled By: andrewjcg

fbshipit-source-id: a9e0b069e63d8224f78b7c3be1c3acf09bb83d3f
  • Loading branch information
andrewjcg authored and facebook-github-bot committed Nov 7, 2018
1 parent d7a0438 commit 0148f71
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion util/xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ It depends on successfully passing SMHasher test set.
*/

#pragma once

#include <stdlib.h>

#if !defined(__VMS) && \
(defined(__cplusplus) || \
(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */))
#include <stdint.h>
#endif

#if defined (__cplusplus)
namespace rocksdb {
#endif
Expand Down Expand Up @@ -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 <stdint.h>

struct XXH64_state_s {
uint64_t total_len;
Expand Down

0 comments on commit 0148f71

Please sign in to comment.