From 592b3f87279ce057985b8f1f55d39f746afbac14 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 12 Apr 2012 07:34:13 +0200 Subject: [PATCH] libmdb: Add C++ 'extern "C" {}' to *.h --- libraries/libmdb/mdb.h | 8 ++++++++ libraries/libmdb/midl.h | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/libraries/libmdb/mdb.h b/libraries/libmdb/mdb.h index fa6daf6..45f7704 100644 --- a/libraries/libmdb/mdb.h +++ b/libraries/libmdb/mdb.h @@ -65,6 +65,10 @@ #include +#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_ */ diff --git a/libraries/libmdb/midl.h b/libraries/libmdb/midl.h index beafb09..59ed8cb 100644 --- a/libraries/libmdb/midl.h +++ b/libraries/libmdb/midl.h @@ -28,6 +28,10 @@ #include +#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_ */