You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.0 KiB
46 lines
1.0 KiB
--- 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
|