diff --git a/profiler/src/ini.h b/profiler/src/ini.h index cd6af9f6..6e865ac9 100644 --- a/profiler/src/ini.h +++ b/profiler/src/ini.h @@ -10,6 +10,10 @@ #define INI_VERSION "0.1.1" +#if defined(__cplusplus) +extern "C" { +#endif + typedef struct ini_t ini_t; ini_t* ini_load(const char *filename); @@ -17,4 +21,8 @@ void ini_free(ini_t *ini); const char* ini_get(ini_t *ini, const char *section, const char *key); int ini_sget(ini_t *ini, const char *section, const char *key, const char *scanfmt, void *dst); +#if defined(__cplusplus) +} +#endif + #endif