diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2011-07-01 09:46:16 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2011-07-01 09:46:16 +0000 |
commit | 598d32e3ae46bd4a5f295e2285fdb8e44e736e41 (patch) | |
tree | 9596dd7d9399c7d9e029b8e948fb3c2a4c294783 /devel/iniparser | |
parent | cd061f010a238f924109f89e7cfdb19f958dfff8 (diff) | |
download | ports-598d32e3ae46bd4a5f295e2285fdb8e44e736e41.tar.gz ports-598d32e3ae46bd4a5f295e2285fdb8e44e736e41.zip |
Add missing patches that were missed by the previous commit
Notes
Notes:
svn path=/head/; revision=276774
Diffstat (limited to 'devel/iniparser')
-rw-r--r-- | devel/iniparser/files/patch-dictionary.c | 24 | ||||
-rw-r--r-- | devel/iniparser/files/patch-iniparser.h | 22 |
2 files changed, 46 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 */ diff --git a/devel/iniparser/files/patch-iniparser.h b/devel/iniparser/files/patch-iniparser.h new file mode 100644 index 000000000000..098c75aed9d7 --- /dev/null +++ b/devel/iniparser/files/patch-iniparser.h @@ -0,0 +1,22 @@ +--- src/iniparser.h.orig 2011-03-29 22:36:06.000000000 +0800 ++++ src/iniparser.h 2011-07-01 17:36:39.000000000 +0800 +@@ -34,6 +34,10 @@ + + #include "dictionary.h" + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + /*-------------------------------------------------------------------------*/ + /** + @brief Get number of sections in a dictionary +@@ -270,4 +274,8 @@ + /*--------------------------------------------------------------------------*/ + void iniparser_freedict(dictionary * d); + ++#ifdef __cplusplus ++} ++#endif ++ + #endif |