Commit 592b3f87 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

libmdb: Add C++ 'extern "C" {}' to *.h

parent 8e1ebbb4
...@@ -65,6 +65,10 @@ ...@@ -65,6 +65,10 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup public Public API /** @defgroup public Public API
* @{ * @{
*/ */
...@@ -976,4 +980,8 @@ int mdb_cmp(MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b); ...@@ -976,4 +980,8 @@ int mdb_cmp(MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b);
*/ */
int mdb_dcmp(MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b); int mdb_dcmp(MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b);
/** @} */ /** @} */
#ifdef __cplusplus
}
#endif
#endif /* _MDB_H_ */ #endif /* _MDB_H_ */
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
#include <stddef.h> #include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup internal MDB Internals /** @defgroup internal MDB Internals
* @{ * @{
*/ */
...@@ -178,4 +182,7 @@ int mdb_mid2l_insert( ID2L ids, ID2 *id ); ...@@ -178,4 +182,7 @@ int mdb_mid2l_insert( ID2L ids, ID2 *id );
/** @} */ /** @} */
/** @} */ /** @} */
#ifdef __cplusplus
}
#endif
#endif /* _MDB_MIDL_H_ */ #endif /* _MDB_MIDL_H_ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment