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

This commit is contained in:
Hallvard Furuseth 2012-04-12 07:34:13 +02:00
parent 8e1ebbb4a8
commit 592b3f8727
2 changed files with 15 additions and 0 deletions

View File

@ -65,6 +65,10 @@
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @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);
*/
int mdb_dcmp(MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b);
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* _MDB_H_ */

View File

@ -28,6 +28,10 @@
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup internal MDB Internals
* @{
*/
@ -178,4 +182,7 @@ int mdb_mid2l_insert( ID2L ids, ID2 *id );
/** @} */
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* _MDB_MIDL_H_ */