blob: b7cd17d2d22676b3da744ee6e391e51fd116e831 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
--- 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
|