diff --git a/db/c.cc b/db/c.cc index fbf2c4ef05f1f432c32fe2413a1fbdfe2d3e8c25..71c5f542cf9fe6eb2358f87468940fdb7706ae0a 100644 --- a/db/c.cc +++ b/db/c.cc @@ -2435,4 +2435,4 @@ extern void rocksdb_livefiles_destroy( } // end extern "C" -#endif // ROCKSDB_LITE +#endif // !ROCKSDB_LITE diff --git a/db/c_test.c b/db/c_test.c index 2669b03adbfbd2aafcc3b148bdda285244b21581..978b6174c93782c028782ab9fef8bd46a728332e 100644 --- a/db/c_test.c +++ b/db/c_test.c @@ -2,6 +2,8 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. See the AUTHORS file for names of contributors. */ +#ifndef ROCKSDB_LITE // Lite does not support C API + #include "rocksdb/c.h" #include @@ -1007,3 +1009,13 @@ int main(int argc, char** argv) { fprintf(stderr, "PASS\n"); return 0; } + +#else +#include + +int main() { + fprintf(stderr, "SKIPPED\n"); + return 0; +} + +#endif // !ROCKSDB_LITE