From a1a1f61fa75e35340ec64624234f9b68520545b4 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 7 May 2014 17:49:23 -0700 Subject: [PATCH] Fix iOS compile --- table/format.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/table/format.cc b/table/format.cc index bbf95e11324..e9229dcf0f3 100644 --- a/table/format.cc +++ b/table/format.cc @@ -23,9 +23,16 @@ namespace rocksdb { extern const uint64_t kLegacyBlockBasedTableMagicNumber; -extern const uint64_t kLegacyPlainTableMagicNumber; extern const uint64_t kBlockBasedTableMagicNumber; + +#ifndef ROCKSDB_LITE +extern const uint64_t kLegacyPlainTableMagicNumber; 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 { // Sanity check that all fields have been set