From dc1ed9952e639f3d5fb41401598d28c4a97f5a1c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 16 Jan 2010 19:34:13 -0800 Subject: Support gcc's __FUNCTION__ for people using other compilers Signed-off-by: Alan Coopersmith --- tests/drmstat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/drmstat.c b/tests/drmstat.c index e2e75234..345b8d2c 100644 --- a/tests/drmstat.c +++ b/tests/drmstat.c @@ -46,6 +46,11 @@ #endif #include "xf86drm.h" +/* Support gcc's __FUNCTION__ for people using other compilers */ +#if !defined(__GNUC__) && !defined(__FUNCTION__) +# define __FUNCTION__ __func__ /* C99 */ +#endif + int sigio_fd; static double usec(struct timeval *end, struct timeval *start) -- cgit v1.2.3