Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 186983 Details for
Bug 264508
dev-libs/iniparser-3.0b: undefined reference when be linked with g++
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
iniparser-3.0b-cpp.patch
iniparser-3.0b-cpp.patch (text/plain), 1.41 KB, created by
Qing Lei
on 2009-04-01 14:00:30 UTC
(
hide
)
Description:
iniparser-3.0b-cpp.patch
Filename:
MIME Type:
Creator:
Qing Lei
Created:
2009-04-01 14:00:30 UTC
Size:
1.41 KB
patch
obsolete
>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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264508
:
186981
| 186983