Added better support of G_STRFUNC for Visual Studio platform

https://bugzilla.gnome.org/show_bug.cgi?id=670128
This commit is contained in:
Filippo Della Betta 2012-02-16 10:04:50 +01:00 committed by Matthias Clasen
parent a30463de8a
commit bf3b879af0

View File

@ -167,6 +167,8 @@
# define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__)) # define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 19901L #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 19901L
# define G_STRFUNC ((const char*) (__func__)) # define G_STRFUNC ((const char*) (__func__))
#elif defined(_MSC_VER) && (_MSC_VER > 1300)
# define G_STRFUNC ((const char*) (__FUNCTION__))
#else #else
# define G_STRFUNC ((const char*) ("???")) # define G_STRFUNC ((const char*) ("???"))
#endif #endif