projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bae884
)
Use C99 versions of __FUNCTION__ & __volatile__ when not building with gcc
author
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 10 Jun 2008 00:03:28 +0000
(17:03 -0700)
committer
Alan Coopersmith
<alan.coopersmith@sun.com>
Sun, 10 May 2009 22:35:03 +0000
(15:35 -0700)
shared-core/drm.h
patch
|
blob
|
history
diff --git
a/shared-core/drm.h
b/shared-core/drm.h
index
b97ba09
..
97fab9a
100644
(file)
--- 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__)