summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-06-09 17:03:28 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-10 15:35:03 -0700
commit628dc48a16ec6796ec5a81428e695837c51463d0 (patch)
treec2b5366c03b4c6f05aca8d490e1d2bbecc12e125
parent1bae8844cafd70f6196116f6e84b0f36c069e976 (diff)
Use C99 versions of __FUNCTION__ & __volatile__ when not building with gcc
-rw-r--r--shared-core/drm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index b97ba098..97fab9a9 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -69,6 +69,12 @@
# define DEPRECATED __attribute__ ((deprecated))
#else
# define DEPRECATED
+# ifndef __FUNCTION__
+# define __FUNCTION__ __func__ /* C99 */
+# endif
+# ifndef __volatile__
+# define __volatile__ volatile
+# endif
#endif
#if defined(__linux__)