[glib/glib-2-30] Added better support of G_STRFUNC for Visual Studio platform
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-30] Added better support of G_STRFUNC for Visual Studio platform
- Date: Sun, 11 Mar 2012 22:23:39 +0000 (UTC)
commit bf3b879af044e06cac76ab4a20443bfcec4aa54c
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 50a03ed..9f5c6f5 100644
--- a/glib/gmacros.h
+++ b/glib/gmacros.h
@@ -167,6 +167,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]