mesa: Avoid using c++ keyword in dri_util.h when compiled with c++.
authorEric Anholt <eric@anholt.net>
Wed, 11 Aug 2010 05:33:39 +0000 (22:33 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 14 Aug 2010 00:54:46 +0000 (17:54 -0700)
src/mesa/drivers/dri/common/dri_util.h

index bc647ff8130f6f74d39034715f682c0c7eb9240d..e2fcdaa63894651037292f4982d16205bfda1359 100644 (file)
@@ -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;