提交 dba5e007 编写于 作者: Y Yueh-Hsuan Chiang

Fixed the compile error in RocksDBLite in memory_test.cc

Summary:
Fixed the following compile error in RocksDBLite:

18:00:33   CC       utilities/memory/memory_test.o
18:00:33 utilities/memory/memory_test.cc: In function ‘int main(int, char**)’:
18:00:33 utilities/memory/memory_test.cc:268:66: error: ‘printf’ was not declared in this scope
18:00:33    printf("Skipped in RocksDBLite as utilities are not supported.");
18:00:33                                                                   ^

Test Plan: make OPT=-DROCKSDB_LITE memory_test

Reviewers: igor, sdong, anthony, IslamAbdelRahman

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D50145
上级 7d7ee2b6
...@@ -263,9 +263,12 @@ int main(int argc, char** argv) { ...@@ -263,9 +263,12 @@ int main(int argc, char** argv) {
return 0; return 0;
#endif #endif
} }
#else #else
#include <cstdio>
int main(int argc, char** argv) { int main(int argc, char** argv) {
printf("Skipped in RocksDBLite as utilities are not supported."); printf("Skipped in RocksDBLite as utilities are not supported.\n");
return 0; return 0;
} }
#endif // !ROCKSDB_LITE #endif // !ROCKSDB_LITE
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册