[glib] Added better support of G_STRFUNC for Visual Studio platform
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Added better support of G_STRFUNC for Visual Studio platform
- Date: Fri, 24 Feb 2012 21:22:03 +0000 (UTC)
commit 462f7f5a4d7f5690e34f639afdd111c5c4119e26
Author: Filippo Della Betta <filippo dellabetta telecomitalia it>
Date: Thu Feb 16 10:04:50 2012 +0100
Added better support of G_STRFUNC for Visual Studio platform
https://bugzilla.gnome.org/show_bug.cgi?id=670128
glib/gmacros.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/gmacros.h b/glib/gmacros.h
index e07610c..be64e32 100644
--- a/glib/gmacros.h
+++ b/glib/gmacros.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]