summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glheader.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-06-19 14:57:34 +0000
committerBrian Paul <[email protected]>2005-06-19 14:57:34 +0000
commit38332a6d94d4f9541bff939522230731f1705e04 (patch)
tree73714196e95932a1f0f07fded76b4b6fa1cfce08 /src/mesa/main/glheader.h
parent4e7df2746638e67c09c5e5d0e5157345f9470122 (diff)
Define __FUNCTION__ as a preprocessor symbol in glheader.h if we're not
using GCC or VMS.
Diffstat (limited to 'src/mesa/main/glheader.h')
-rw-r--r--src/mesa/main/glheader.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h
index abb858638eb..a4dff0fe7f7 100644
--- a/src/mesa/main/glheader.h
+++ b/src/mesa/main/glheader.h
@@ -285,6 +285,17 @@ int INLINE ffs(int value)
}
#endif
+
+/* The __FUNCTION__ gcc variable is generally only used for debugging.
+ * If we're not using gcc, define __FUNCTION__ as a cpp symbol here.
+ */
+#if defined(__VMS)
+#define __FUNCTION__ "VMS$NL:"
+#elif !(defined(__GNUC__) && __GNUC__ >= 2)
+#define __FUNCTION__ "unknown"
+#endif
+
+
#include "config.h"
#endif /* GLHEADER_H */