summaryrefslogtreecommitdiff
path: root/lib/libdrm/include/drm/drm_sarea.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdrm/include/drm/drm_sarea.h')
-rw-r--r--lib/libdrm/include/drm/drm_sarea.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libdrm/include/drm/drm_sarea.h b/lib/libdrm/include/drm/drm_sarea.h
index 502934edc..93025be8b 100644
--- a/lib/libdrm/include/drm/drm_sarea.h
+++ b/lib/libdrm/include/drm/drm_sarea.h
@@ -34,6 +34,10 @@
#include "drm.h"
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
/* SAREA area needs to be at least a page */
#if defined(__alpha__)
#define SAREA_MAX 0x2000U
@@ -81,4 +85,8 @@ typedef struct drm_sarea_drawable drm_sarea_drawable_t;
typedef struct drm_sarea_frame drm_sarea_frame_t;
typedef struct drm_sarea drm_sarea_t;
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* _DRM_SAREA_H_ */