After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663880 - Missing G_BEGIN_DECLS/G_END_DECLS in glib/glib-unix.h
Missing G_BEGIN_DECLS/G_END_DECLS in glib/glib-unix.h
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-11-11 19:42 UTC by Ben Chan
Modified: 2011-11-12 15:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for glib-unix.h (543 bytes, patch)
2011-11-11 19:42 UTC, Ben Chan
none Details | Review
glib-unix.h: Add G_BEGIN/END_DECLS (837 bytes, patch)
2011-11-12 15:33 UTC, Matthias Clasen
committed Details | Review

Description Ben Chan 2011-11-11 19:42:24 UTC
Created attachment 201250 [details] [review]
patch for glib-unix.h

G_BEGIN_DECLS/G_END_DECLS are missing in glib/glib-unix.h. When compiling the header in a C++ project, that may cause unwanted name mangling of functions like g_unix_signal_add, and lead to a linking error.
Comment 1 Matthias Clasen 2011-11-12 15:33:11 UTC
The following fix has been pushed:
5d9f05e glib-unix.h: Add G_BEGIN/END_DECLS
Comment 2 Matthias Clasen 2011-11-12 15:33:13 UTC
Created attachment 201291 [details] [review]
glib-unix.h: Add G_BEGIN/END_DECLS

The omission was pointed out in bug 663880.