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 Ryan Lortie
parent a75cac1b4c
commit 462f7f5a4d

View File

@ -178,6 +178,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