mirror of
https://github.com/facebook/rocksdb.git
synced 2024-12-04 20:02:50 +00:00
Fix iOS compile
This commit is contained in:
parent
044af85847
commit
a1a1f61fa7
|
@ -23,9 +23,16 @@
|
||||||
namespace rocksdb {
|
namespace rocksdb {
|
||||||
|
|
||||||
extern const uint64_t kLegacyBlockBasedTableMagicNumber;
|
extern const uint64_t kLegacyBlockBasedTableMagicNumber;
|
||||||
extern const uint64_t kLegacyPlainTableMagicNumber;
|
|
||||||
extern const uint64_t kBlockBasedTableMagicNumber;
|
extern const uint64_t kBlockBasedTableMagicNumber;
|
||||||
|
|
||||||
|
#ifndef ROCKSDB_LITE
|
||||||
|
extern const uint64_t kLegacyPlainTableMagicNumber;
|
||||||
extern const uint64_t kPlainTableMagicNumber;
|
extern const uint64_t kPlainTableMagicNumber;
|
||||||
|
#else
|
||||||
|
// ROCKSDB_LITE doesn't have plain table
|
||||||
|
const uint64_t kLegacyPlainTableMagicNumber = 0;
|
||||||
|
const uint64_t kPlainTableMagicNumber = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
void BlockHandle::EncodeTo(std::string* dst) const {
|
void BlockHandle::EncodeTo(std::string* dst) const {
|
||||||
// Sanity check that all fields have been set
|
// Sanity check that all fields have been set
|
||||||
|
|
Loading…
Reference in a new issue