projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b31896b
)
gstinfo: don't assume G_HAVE_ISO_VARARGS implies ISO C99
author
Brian Cameron
<brian.cameron@sun.com>
Fri, 17 Apr 2009 09:11:21 +0000
(10:11 +0100)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Fri, 17 Apr 2009 09:11:21 +0000
(10:11 +0100)
Makes headers C++ clean, esp. with the Sun compilers.
Fixes #567692.
gst/gstinfo.h
patch
|
blob
|
history
diff --git
a/gst/gstinfo.h
b/gst/gstinfo.h
index
dcefc8b
..
37a4a3b
100644
(file)
--- a/
gst/gstinfo.h
+++ b/
gst/gstinfo.h
@@
-220,7
+220,7
@@
struct _GstDebugCategory {
#ifndef GST_FUNCTION
#if defined (__GNUC__) || (defined (_MSC_VER) && _MSC_VER >= 1300)
# define GST_FUNCTION ((const char*) (__FUNCTION__))
-#elif defined (
G_HAVE_ISO_VARARGS)
+#elif defined (
__STDC__) && defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
# define GST_FUNCTION ((const char*) (__func__))
#else
# define GST_FUNCTION ((const char*) ("???"))