aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/dri2_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/dri2_priv.h')
-rw-r--r--src/glx/dri2_priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glx/dri2_priv.h b/src/glx/dri2_priv.h
index e81b1bf416d..8a640728ec7 100644
--- a/src/glx/dri2_priv.h
+++ b/src/glx/dri2_priv.h
@@ -30,6 +30,10 @@
* Kristian Høgsberg ([email protected])
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct dri2_screen {
struct glx_screen base;
@@ -74,3 +78,7 @@ _X_HIDDEN int
dri2_interop_export_object(struct glx_context *ctx,
const mesa_glinterop_export_in *in,
mesa_glinterop_export_out *out);
+
+#ifdef __cplusplus
+}
+#endif