Only use __FUNCTION__, __PRETTY_FUNCTION__ for G_GNUC_FUNCTION,
authorOwen Taylor <otaylor@redhat.com>
Mon, 28 Jan 2002 23:01:19 +0000 (23:01 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 28 Jan 2002 23:01:19 +0000 (23:01 +0000)
Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
        G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
        3, since in 3.0.3 the semantics of these functions were changed in
        an incompatible way. (#69097)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmacros.h

index 21e9bc9..c48bd25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 21e9bc9..c48bd25 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 21e9bc9..c48bd25 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 21e9bc9..c48bd25 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 21e9bc9..c48bd25 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 21e9bc9..c48bd25 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 21e9bc9..c48bd25 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 21e9bc9..c48bd25 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 28 17:56:10 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
+       G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
+       3, since in 3.0.3 the semantics of these functions were changed in
+       an incompatible way. (#69097)
+
 2002-01-28  Ron Steinke  <rsteinke@w-link.net>
 
        * glib/giochannel.c: Some documentation fixes/elaborations
index 5002d85..2f42a31 100644 (file)
@@ -82,7 +82,7 @@
 /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
  * macros, so we can refer to them as strings unconditionally.
  */
-#ifdef  __GNUC__
+#ifdef  __GNUC__ && (__GNUC__ < 3)
 #define G_GNUC_FUNCTION         __FUNCTION__
 #define G_GNUC_PRETTY_FUNCTION  __PRETTY_FUNCTION__
 #else   /* !__GNUC__ */
@@ -94,7 +94,7 @@
 #define        G_STRINGIFY_ARG(contents)       #contents
 
 /* Provide a string identifying the current code position */
-#ifdef  __GNUC__
+#if defined(__GNUC__) && (__GNUC__ < 3)
 #  define G_STRLOC     __FILE__ ":" G_STRINGIFY (__LINE__) ":" __PRETTY_FUNCTION__ "()"
 #else
 #  define G_STRLOC     __FILE__ ":" G_STRINGIFY (__LINE__)