1
0
Fork 0
forked from lthn/blockchain

added missing file + code cleanup

This commit is contained in:
cryptozoidberg 2019-08-31 14:48:02 +02:00
parent 84dfc6917a
commit eb4a10e18e
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 21 additions and 8 deletions

View file

@ -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})

View 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
}
}