summaryrefslogtreecommitdiff
path: root/xf86drm.h
diff options
context:
space:
mode:
Diffstat (limited to 'xf86drm.h')
-rw-r--r--xf86drm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xf86drm.h b/xf86drm.h
index 20f4c783..76eb94e2 100644
--- a/xf86drm.h
+++ b/xf86drm.h
@@ -39,6 +39,10 @@
#include <stdint.h>
#include <drm.h>
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
#ifndef DRM_MAX_MINOR
#define DRM_MAX_MINOR 16
#endif
@@ -723,4 +727,8 @@ extern int drmHandleEvent(int fd, drmEventContextPtr evctx);
extern char *drmGetDeviceNameFromFd(int fd);
+#if defined(__cplusplus) || defined(c_plusplus)
+}
+#endif
+
#endif