OSDN Git Service

drm: use c99 __func__ over __FUNCTION__
[android-x86/external-libdrm.git] / tests / drmstat.c
index c800ebb..023aa06 100644 (file)
 #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)
@@ -87,7 +82,7 @@ static void process_sigio(char *device)
     int              fd;
 
     if ((fd = open(device, 0)) < 0) {
-       drmError(-errno, __FUNCTION__);
+       drmError(-errno, __func__);
        exit(1);
     }