forked from lthn/blockchain
added missing file + code cleanup
This commit is contained in:
parent
84dfc6917a
commit
eb4a10e18e
2 changed files with 21 additions and 8 deletions
|
|
@ -14,14 +14,6 @@ endif()
|
|||
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
if(NOT MSVC)
|
||||
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers -Wno-missing-braces -Wno-aggregate-return")
|
||||
endif()
|
||||
|
||||
if(FREEBSD)
|
||||
# add_definitions(-DMDB_DSYNC=O_SYNC)
|
||||
endif()
|
||||
|
||||
add_library(mdbx ${mdbx_sources})
|
||||
|
||||
target_link_libraries(mdbx PRIVATE ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
|
|
|||
21
src/common/db_backend_selector.h
Normal file
21
src/common/db_backend_selector.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
// Copyright (c) 2014-2019 Zano Project
|
||||
// Copyright (c) 2014-2018 The Louisdor Project
|
||||
// Distributed under the MIT/X11 software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "db_backend_lmdb.h"
|
||||
#include "db_backend_mdbx.h"
|
||||
|
||||
namespace tools
|
||||
{
|
||||
namespace db
|
||||
{
|
||||
#ifdef DB_ENGINE_LMDB
|
||||
typedef lmdb_db_backend default_db_backend;
|
||||
#elif DB_ENGINE_MDBX
|
||||
typedef mdbx_db_backend default_db_backend;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue