summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-10 22:33:39 -0700
committerEric Anholt <eric@anholt.net>2010-08-13 17:54:46 -0700
commit9c3acce68001fdf7f5c77d1819d576b4cf92410a (patch)
tree8bde72daf5199368c447c28ee1c0e3663939499e /src/mesa/drivers/dri/common
parentc374487a54aca2dd1053645092367c1cf0414ef7 (diff)
mesa: Avoid using c++ keyword in dri_util.h when compiled with c++.
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h
index bc647ff8130..e2fcdaa6389 100644
--- a/src/mesa/drivers/dri/common/dri_util.h
+++ b/src/mesa/drivers/dri/common/dri_util.h
@@ -513,7 +513,11 @@ struct __DRIscreenRec {
*
* This pointer is never touched by the DRI layer.
*/
+#ifdef __cplusplus
+ void *priv;
+#else
void *private;
+#endif
/* Extensions provided by the loader. */
const __DRIgetDrawableInfoExtension *getDrawableInfo;