mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
Added better support of G_STRFUNC for Visual Studio platform
https://bugzilla.gnome.org/show_bug.cgi?id=670128
This commit is contained in:
parent
a75cac1b4c
commit
462f7f5a4d
@ -178,6 +178,8 @@
|
||||
# define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__))
|
||||
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 19901L
|
||||
# define G_STRFUNC ((const char*) (__func__))
|
||||
#elif defined(_MSC_VER) && (_MSC_VER > 1300)
|
||||
# define G_STRFUNC ((const char*) (__FUNCTION__))
|
||||
#else
|
||||
# define G_STRFUNC ((const char*) ("???"))
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user