mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
gmacros.h: fix C99 check
G_STRFUNC was checking __STDC_VERSION__ against the wrong value (though it didn't actually matter, since __STDC_VERSION__ wasn't defined in C90, so the check still only matched C99 and above anyway).
This commit is contained in:
parent
d0cd2e8ed0
commit
dc172f0616
@ -195,7 +195,7 @@
|
||||
/* Provide a string identifying the current function, non-concatenatable */
|
||||
#if defined (__GNUC__) && defined (__cplusplus)
|
||||
# define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__))
|
||||
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 19901L
|
||||
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||
# define G_STRFUNC ((const char*) (__func__))
|
||||
#elif defined (__GNUC__) || (defined(_MSC_VER) && (_MSC_VER > 1300))
|
||||
# define G_STRFUNC ((const char*) (__FUNCTION__))
|
||||
|
Loading…
Reference in New Issue
Block a user