From: Hallvard Furuseth Date: Thu, 12 Apr 2012 05:34:13 +0000 (+0200) Subject: libmdb: Add C++ 'extern "C" {}' to *.h X-Git-Tag: OPENLDAP_REL_ENG_2_4_32~125^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=592b3f87279ce057985b8f1f55d39f746afbac14;p=openldap libmdb: Add C++ 'extern "C" {}' to *.h --- diff --git a/libraries/libmdb/mdb.h b/libraries/libmdb/mdb.h index fa6daf672b..45f7704903 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 beafb097c0..59ed8cb660 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_ */