mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01:00
Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
2008-09-09 Matthias Clasen <mclasen@redhat.com> 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
This commit is contained in:
parent
8f1f4df90e
commit
0b890c6298
@ -1,3 +1,12 @@
|
|||||||
|
2008-09-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
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 <mclasen@redhat.com>
|
2008-09-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()
|
Bug 523463 – Core dump in gmain.c:2482:IA__g_main_context_check()
|
||||||
|
@ -147,7 +147,7 @@
|
|||||||
/* Provide a string identifying the current function, non-concatenatable */
|
/* Provide a string identifying the current function, non-concatenatable */
|
||||||
#if defined (__GNUC__)
|
#if defined (__GNUC__)
|
||||||
# define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__))
|
# 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__))
|
# define G_STRFUNC ((const char*) (__func__))
|
||||||
#else
|
#else
|
||||||
# define G_STRFUNC ((const char*) ("???"))
|
# define G_STRFUNC ((const char*) ("???"))
|
||||||
|
Loading…
Reference in New Issue
Block a user