summaryrefslogtreecommitdiff
path: root/devel/iniparser/files/patch-dictionary.c
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2011-07-01 09:46:16 +0000
committerKevin Lo <kevlo@FreeBSD.org>2011-07-01 09:46:16 +0000
commit598d32e3ae46bd4a5f295e2285fdb8e44e736e41 (patch)
tree9596dd7d9399c7d9e029b8e948fb3c2a4c294783 /devel/iniparser/files/patch-dictionary.c
parentSwitch to MASTER_SITE_DEBIAN (diff)
Add missing patches that were missed by the previous commit
Notes
Notes: svn path=/head/; revision=276774
Diffstat (limited to 'devel/iniparser/files/patch-dictionary.c')
-rw-r--r--devel/iniparser/files/patch-dictionary.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/iniparser/files/patch-dictionary.c b/devel/iniparser/files/patch-dictionary.c
new file mode 100644
index 000000000000..aaac23a8d7ae
--- /dev/null
+++ b/devel/iniparser/files/patch-dictionary.c
@@ -0,0 +1,24 @@
+--- src/dictionary.c.orig 2011-07-01 17:03:46.000000000 +0800
++++ src/dictionary.c 2011-07-01 17:04:55.000000000 +0800
+@@ -39,6 +39,10 @@
+ Private functions
+ ---------------------------------------------------------------------------*/
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /* Doubles the allocated size associated to a pointer */
+ /* 'size' is the current allocated size. */
+ static void * mem_double(void * ptr, int size)
+@@ -401,5 +405,10 @@
+ dictionary_del(d);
+ return 0 ;
+ }
++
++#ifdef __cplusplus
++}
++#endif
++
+ #endif
+ /* vim: set ts=4 et sw=4 tw=75 */