blob: cb331b813093c80b5daf70e8fe91e8ecef97d9a2 (
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
46
47
|
diff -ur iniparser3.0b/src/dictionary.c iniparser3.0b-patched/src/dictionary.c
--- iniparser3.0b/src/dictionary.c 2007-11-24 05:39:18.000000000 +0800
+++ iniparser3.0b-patched/src/dictionary.c 2009-04-01 21:38:09.000000000 +0800
@@ -38,6 +38,9 @@
/*---------------------------------------------------------------------------
Private functions
---------------------------------------------------------------------------*/
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Doubles the allocated size associated to a pointer */
/* 'size' is the current allocated size. */
@@ -401,5 +404,10 @@
dictionary_del(d);
return 0 ;
}
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* vim: set ts=4 et sw=4 tw=75 */
diff -ur iniparser3.0b/src/iniparser.h iniparser3.0b-patched/src/iniparser.h
--- iniparser3.0b/src/iniparser.h 2007-11-24 05:38:19.000000000 +0800
+++ iniparser3.0b-patched/src/iniparser.h 2009-04-01 21:38:02.000000000 +0800
@@ -41,6 +41,10 @@
#define iniparser_getstr(d, k) iniparser_getstring(d, k, NULL)
#define iniparser_setstr iniparser_setstring
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*-------------------------------------------------------------------------*/
/**
@brief Get number of sections in a dictionary
@@ -277,4 +281,8 @@
/*--------------------------------------------------------------------------*/
void iniparser_freedict(dictionary * d);
+#ifdef __cplusplus
+}
+#endif
+
#endif
|