diff options
-rw-r--r-- | src/radeon.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h index 9410dda5..9363c297 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -98,6 +98,11 @@ #define MIN(a,b) ((a)>(b)?(b):(a)) #endif +/* Provide substitutes for gcc's __FUNCTION__ on other compilers */ +#if !defined(__GNUC__) && !defined(__FUNCTION__) +# define __FUNCTION__ __func__ /* C99 */ +#endif + #ifndef HAVE_XF86MODEBANDWIDTH extern unsigned int xf86ModeBandwidth(DisplayModePtr mode, int depth); #define MODE_BANDWIDTH MODE_BAD |