To enable usage of xf86drm.h from C++ programs/frameworks. Signed-off-by: Tapani Pälli <tapani.palli@xxxxxxxxx> --- xf86drm.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/xf86drm.h b/xf86drm.h index 20f4c78..7cdf631 100644 --- a/xf86drm.h +++ b/xf86drm.h @@ -39,6 +39,10 @@ #include <stdint.h> #include <drm.h> +#ifdef __cplusplus +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); +#ifdef __cplusplus +} +#endif + #endif -- 1.7.6.2 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel