Use C99 versions of __FUNCTION__ & __volatile__ when not building with gcc
authorAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 10 Jun 2008 00:03:28 +0000 (17:03 -0700)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Sun, 10 May 2009 22:35:03 +0000 (15:35 -0700)
shared-core/drm.h

index b97ba09..97fab9a 100644 (file)
 # define DEPRECATED  __attribute__ ((deprecated))
 #else
 # define DEPRECATED
+# ifndef __FUNCTION__
+#  define __FUNCTION__ __func__ /* C99 */
+# endif
+# ifndef __volatile__
+#  define __volatile__ volatile
+# endif
 #endif
 
 #if defined(__linux__)