From 628dc48a16ec6796ec5a81428e695837c51463d0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 9 Jun 2008 17:03:28 -0700 Subject: [PATCH] Use C99 versions of __FUNCTION__ & __volatile__ when not building with gcc --- shared-core/drm.h | 6 ++++++ 1 file changed, 6 insertions(+) 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__) -- 2.11.0