diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-05-20 20:33:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-05-20 20:35:09 -0700 |
commit | 521a0488d1c414209c3534dc242000faa332a441 (patch) | |
tree | 54c731be4d49f484dbb6f19f1dc5930f863d75a2 /src | |
parent | b7c80d0c86646105d2bce5d4d59ba6c45aa7cafc (diff) |
On non-gcc compilers, use C99's __func__ instead of gcc's __FUNCTION__
Diffstat (limited to 'src')
-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 |