diff options
Diffstat (limited to 'src/mesa/main/glheader.h')
-rw-r--r-- | src/mesa/main/glheader.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h index abb858638e..a4dff0fe7f 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 */ |