projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a75cac1
)
Added better support of G_STRFUNC for Visual Studio platform
author
Filippo Della Betta
<filippo.dellabetta@telecomitalia.it>
Thu, 16 Feb 2012 09:04:50 +0000
(10:04 +0100)
committer
Ryan Lortie
<desrt@desrt.ca>
Fri, 24 Feb 2012 21:21:45 +0000
(16:21 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=670128
glib/gmacros.h
patch
|
blob
|
history
diff --git
a/glib/gmacros.h
b/glib/gmacros.h
index
e07610c
..
be64e32
100644
(file)
--- 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