--- a/src/dictionary.c +++ b/src/dictionary.c @@ -32,6 +32,9 @@ /*--------------------------------------------------------------------------- Private functions ---------------------------------------------------------------------------*/ +#ifdef __cplusplus +extern "C" { +#endif /* Doubles the allocated size associated to a pointer */ /* 'size' is the current allocated size. */ @@ -394,5 +397,10 @@ dictionary_del(d); return 0 ; } + +#ifdef __cplusplus +} +#endif + #endif /* vim: set ts=4 et sw=4 tw=75 */ --- a/src/iniparser.h +++ b/src/iniparser.h @@ -49,6 +49,10 @@ int iniparser_getnsec(dictionary * d); +#ifdef __cplusplus +extern "C" { +#endif + /*-------------------------------------------------------------------------*/ /** @brief Get name for section n in a dictionary. @@ -304,4 +308,8 @@ /*--------------------------------------------------------------------------*/ void iniparser_freedict(dictionary * d); +#ifdef __cplusplus +} +#endif + #endif