projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35e01b7
)
mesa: Define C99's __func__ macro on MSVC.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 6 Sep 2010 12:56:07 +0000
(13:56 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 6 Sep 2010 12:57:44 +0000
(13:57 +0100)
src/mesa/main/compiler.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/compiler.h
b/src/mesa/main/compiler.h
index ded69c3106ca00b3bac2211d06c3d7c3b79812cd..800eb839005bebadf19e15da34a13f31a224370a 100644
(file)
--- a/
src/mesa/main/compiler.h
+++ b/
src/mesa/main/compiler.h
@@
-224,6
+224,18
@@
extern "C" {
# endif
# endif
#endif
+#ifndef __func__
+# if (__STDC_VERSION__ >= 199901L) || \
+ (defined(__SUNPRO_C) && defined(__C99FEATURES__))
+ /* __func__ is part of C99 */
+# elif defined(_MSC_VER)
+# if _MSC_VER >= 1300
+# define __func__ __FUNCTION__
+# else
+# define __func__ "<unknown>"
+# endif
+# endif
+#endif
/**