From 23287f05cf2443ddf9e028e29beb5bd30979c6cf Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 26 Aug 2010 15:39:28 -0700 Subject: Avoid use of c++ reserved keyword "virtual" when using a C++ compiler. Avoids requiring nasty hacks around libdrm headers in the new C++ parts of Mesa drivers. --- include/drm/drm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/drm/drm.h') diff --git a/include/drm/drm.h b/include/drm/drm.h index a0559eb0..2ba71364 100644 --- a/include/drm/drm.h +++ b/include/drm/drm.h @@ -373,7 +373,11 @@ struct drm_buf_pub { */ struct drm_buf_map { int count; /**< Length of the buffer list */ +#ifdef __cplusplus + void *virt; +#else void *virtual; /**< Mmap'd area in user-virtual */ +#endif struct drm_buf_pub *list; /**< Buffer information */ }; -- cgit v1.2.3