mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move ./modules to ./src
This commit is contained in:
28
src/ripple_mdb/ripple_mdb.c
Normal file
28
src/ripple_mdb/ripple_mdb.c
Normal file
@@ -0,0 +1,28 @@
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
// Unity build file for MDB
|
||||
|
||||
#include "BeastConfig.h"
|
||||
|
||||
#include "ripple_mdb.h"
|
||||
|
||||
#if RIPPLE_MDB_AVAILABLE
|
||||
|
||||
#if BEAST_GCC
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#pragma GCC diagnostic ignored "-Waddress"
|
||||
#endif
|
||||
|
||||
#include "mdb/libraries/liblmdb/mdb.c"
|
||||
#include "mdb/libraries/liblmdb/midl.c"
|
||||
|
||||
#if BEAST_GCC
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
23
src/ripple_mdb/ripple_mdb.h
Normal file
23
src/ripple_mdb/ripple_mdb.h
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifndef RIPPLE_MDB_H_INCLUDED
|
||||
#define RIPPLE_MDB_H_INCLUDED
|
||||
|
||||
#include "beast/modules/beast_core/system/TargetPlatform.h"
|
||||
|
||||
#if ! BEAST_WIN32
|
||||
#define RIPPLE_MDB_AVAILABLE 1
|
||||
|
||||
#include "mdb/libraries/liblmdb/lmdb.h"
|
||||
|
||||
#else
|
||||
// mdb is unsupported on Win32
|
||||
#define RIPPLE_MDB_AVAILBLE 0
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user