Skip to content

Commit

Permalink
remove #include port/port.h in public header file
Browse files Browse the repository at this point in the history
Summary:
break internal build
Closes facebook#2336

Differential Revision: D5097089

Pulled By: lightmark

fbshipit-source-id: 6996cbadeead21074a41e526ea04659190ee61d8
  • Loading branch information
lightmark authored and facebook-github-bot committed May 20, 2017
1 parent 07bdcb9 commit 4c9d2b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions include/rocksdb/iostats_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <stdint.h>
#include <string>

#include "port/port.h"
#include "rocksdb/perf_level.h"

// A thread local context for gathering io-stats efficiently and transparently.
Expand Down Expand Up @@ -48,7 +47,12 @@ struct IOStatsContext {
};

#ifdef ROCKSDB_SUPPORT_THREAD_LOCAL
extern __thread IOStatsContext iostats_context;
#if defined(_MSC_VER) && !defined(__thread)
// Thread local storage on Linux
// There is thread_local in C++11
#define __thread __declspec(thread)
#endif
extern __thread IOStatsContext iostats_context;
#endif

} // namespace rocksdb
6 changes: 5 additions & 1 deletion include/rocksdb/perf_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <stdint.h>
#include <string>

#include "port/port.h"
#include "rocksdb/perf_level.h"

namespace rocksdb {
Expand Down Expand Up @@ -158,6 +157,11 @@ extern PerfContext perf_context;
PerfContext *getPerfContext();
#define perf_context (*getPerfContext())
#else
#if defined(_MSC_VER) && !defined(__thread)
// Thread local storage on Linux
// There is thread_local in C++11
#define __thread __declspec(thread)
#endif
extern __thread PerfContext perf_context;
#endif
#endif
Expand Down

0 comments on commit 4c9d2b1

Please sign in to comment.