diff --git a/src/BeastConfig.h b/src/BeastConfig.h index 2e0dc00cd0..6454c619eb 100644 --- a/src/BeastConfig.h +++ b/src/BeastConfig.h @@ -163,6 +163,20 @@ //------------------------------------------------------------------------------ +// These control whether or not certain functionality gets +// compiled into the resulting rippled executable + +/** Config: RIPPLE_ROCKSDB_AVAILABLE + Controls whether or not the RocksDB database back-end is compiled into + rippled. RocksDB requires a relatively modern C++ compiler (tested with + gcc versions 4.8.1 and later) that supports some C++11 features. +*/ +#ifndef RIPPLE_ROCKSDB_AVAILABLE +//#define RIPPLE_ROCKSDB_AVAILABLE 0 +#endif + +//------------------------------------------------------------------------------ + // Here temporarily to turn off new Validations code while it // is being written. // diff --git a/src/ripple/rocksdb/ripple_rocksdb.h b/src/ripple/rocksdb/ripple_rocksdb.h index b59032212b..675c623949 100644 --- a/src/ripple/rocksdb/ripple_rocksdb.h +++ b/src/ripple/rocksdb/ripple_rocksdb.h @@ -26,7 +26,11 @@ # if BEAST_WIN32 # define RIPPLE_ROCKSDB_AVAILABLE 0 # else -# define RIPPLE_ROCKSDB_AVAILABLE 1 +# if __cplusplus >= 201103L +# define RIPPLE_ROCKSDB_AVAILABLE 1 +# else +# define RIPPLE_ROCKSDB_AVAILABLE 0 +# endif # endif #endif