From efce727ad49131ff350fd5e8fe98108497368460 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 1 May 2023 15:13:00 +0200 Subject: [PATCH] Add extern "C" to ini.h. --- profiler/src/ini.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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