mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Add ripple_mdb module
This commit is contained in:
38
modules/ripple_mdb/ripple_mdb.c
Normal file
38
modules/ripple_mdb/ripple_mdb.c
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||||
|
*/
|
||||||
|
//==============================================================================
|
||||||
|
|
||||||
|
// Unity build file for MDB
|
||||||
|
|
||||||
|
#include "BeastConfig.h"
|
||||||
|
|
||||||
|
#include "ripple_mdb.h"
|
||||||
|
|
||||||
|
#include "beast/modules/beast_core/system/beast_TargetPlatform.h"
|
||||||
|
|
||||||
|
#define __LITTLE_ENDIAN 1
|
||||||
|
#define __BIG_ENDIAN 2
|
||||||
|
typedef unsigned short uint16_t;
|
||||||
|
|
||||||
|
#if BEAST_LITTLE_ENDIAN
|
||||||
|
# define BYTE_ORDER __LITTLE_ENDIAN
|
||||||
|
#elif BEAST_BIG_ENDIAN
|
||||||
|
# define BYTE_ORDER __BIG_ENDIAN
|
||||||
|
#else
|
||||||
|
# error "Unknown endianness"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if BEAST_MSVC
|
||||||
|
#pragma warning (push)
|
||||||
|
//#pragma warning (disable: 4092)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "mdb/libraries/liblmdb/mdb.c"
|
||||||
|
#include "mdb/libraries/liblmdb/midl.c"
|
||||||
|
#include "mdb/libraries/liblmdb/mdb.c"
|
||||||
|
|
||||||
|
#if BEAST_MSVC
|
||||||
|
#pragma warning (pop)
|
||||||
|
#endif
|
||||||
11
modules/ripple_mdb/ripple_mdb.h
Normal file
11
modules/ripple_mdb/ripple_mdb.h
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
/*
|
||||||
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
||||||
|
*/
|
||||||
|
//==============================================================================
|
||||||
|
|
||||||
|
#ifndef RIPPLE_MDB_H_INCLUDED
|
||||||
|
#define RIPPLE_MDB_H_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user