rocksdb/examples
Zhongyi Xie d68f9f4580 simplify include directive involving inttypes (#5402)
Summary:
When using `PRIu64` type of printf specifier, current code base does the following:
```
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
```
However, this can be simplified to
```
#include <cinttypes>
```
as long as flag `-std=c++11` is used.
This should solve issues like https://github.com/facebook/rocksdb/issues/5159
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5402

Differential Revision: D15701195

Pulled By: miasantreble

fbshipit-source-id: 6dac0a05f52aadb55e9728038599d3d2e4b59d03
2019-06-06 13:56:07 -07:00
..
.gitignore Support for single-primary, multi-secondary instances (#4899) 2019-03-26 16:45:31 -07:00
Makefile Support for single-primary, multi-secondary instances (#4899) 2019-03-26 16:45:31 -07:00
README.md
c_simple_example.c
column_families_example.cc
compact_files_example.cc
compaction_filter_example.cc Replace dynamic_cast<> 2017-07-28 16:27:16 -07:00
multi_processes_example.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
optimistic_transaction_example.cc
options_file_example.cc
rocksdb_option_file_example.ini Pin top-level index on partitioned index/filter blocks (#4037) 2018-06-22 15:27:46 -07:00
simple_example.cc Pinnableslice examples and blog post 2017-08-24 12:26:07 -07:00
transaction_example.cc

README.md

  1. Compile RocksDB first by executing make static_lib in parent dir
  2. Compile all examples: cd examples/; make all