summaryrefslogtreecommitdiff
path: root/xf86drmMode.h
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2011-09-23 14:17:42 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-23 12:58:56 +0100
commitcfee5218b17a2741e5519ed44091171e01f0dbb2 (patch)
tree13c01740f919b2ef99ecac9bdfc3c4da8e37cfe9 /xf86drmMode.h
parent194aa1bee632c6dce19238664eb8373e3483de55 (diff)
xf86drm.h : wrap C code for C++ compilation/linking
To enable usage of xf86drm.h from C++ programs/frameworks. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> [ickle: also wrap xf86drmMode.h] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'xf86drmMode.h')
-rw-r--r--xf86drmMode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xf86drmMode.h b/xf86drmMode.h
index ee7c4544..1b1e3e21 100644
--- a/xf86drmMode.h
+++ b/xf86drmMode.h
@@ -33,6 +33,10 @@
*
*/
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#include <drm.h>
/*
@@ -386,3 +390,7 @@ extern int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
uint16_t *red, uint16_t *green, uint16_t *blue);
extern int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,
uint32_t flags, void *user_data);
+
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif