From: Matthias Clasen Date: Wed, 10 Sep 2008 03:21:42 +0000 (+0000) Subject: Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=0b890c62986c23345de43882062c557bc1471fef;p=dana%2Fcg-glib.git Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to 2008-09-09 Matthias Clasen Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to __func__ rather than '???' * glib/gmacros.h: Don't use glibconfig.h defines in gmacros.h, as the comment up top says. Instead look at __STDC_VERSION__. Problem reported by Lin Ma. svn path=/trunk/; revision=7451 --- diff --git a/ChangeLog b/ChangeLog index 5646151d..ff2dbad0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-09-09 Matthias Clasen + + Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to + __func__ rather than '???' + + * glib/gmacros.h: Don't use glibconfig.h defines in gmacros.h, + as the comment up top says. Instead look at __STDC_VERSION__. + Problem reported by Lin Ma. + 2008-09-09 Matthias Clasen Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check() diff --git a/glib/gmacros.h b/glib/gmacros.h index 63174089..f87e932c 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -147,7 +147,7 @@ /* Provide a string identifying the current function, non-concatenatable */ #if defined (__GNUC__) # define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) -#elif defined (G_HAVE_ISO_VARARGS) +#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 19901L # define G_STRFUNC ((const char*) (__func__)) #else # define G_STRFUNC ((const char*) ("???"))