diff options
-rw-r--r-- | glib/gmacros.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/gmacros.h b/glib/gmacros.h index cde9f6b43..91fb98e9d 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -733,10 +733,10 @@ #endif /* Provide a string identifying the current function, non-concatenatable */ -#if defined (__func__) -#define G_STRFUNC ((const char*) (__func__)) -#elif defined (__GNUC__) && defined (__cplusplus) +#if defined (__GNUC__) && defined (__cplusplus) #define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) +#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__)) #else |