[gstreamer-bugs] [Bug 319940] Use GLIB macros for GCC extensions
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Oct 28 10:25:46 PDT 2005
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=319940
GStreamer | gstreamer (core) | Ver: HEAD CVS
------- Additional Comments From Thomas Vander Stichele 2005-10-28 17:25 -------
_TERMINATED is a 2.8 macro. We can add it to a glib-compat.h
however, the current one should:
- be moved to glib-compat-private.h
- receive an #ifndef _H, so it can be included multiple times
and a new one should be created, which will also be installed, since it needs to
be public for all others to include the header you want to use it in
it would look like this:
/* added in GLib 2.8 */
#if !GLIB_CHECK_VERSION (2, 8, 0)
#if __GNUC__ >= 4
#define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
#else
#define G_GNUC_NULL_TERMINATED
#endif
#endif
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.
More information about the Gstreamer-bugs
mailing list