From 3818081565b01f126c1fcb22f810466fa589cf97 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 7 Apr 2016 19:38:49 +0100 Subject: [PATCH] drm/virgl: add extern C guard for the UAPI header Cc: Dave Airlie Cc: Gerd Hoffmann Signed-off-by: Emil Velikov --- include/uapi/drm/virtgpu_drm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/virtgpu_drm.h b/include/uapi/drm/virtgpu_drm.h index c74f1f90cb37..91a31ffed828 100644 --- a/include/uapi/drm/virtgpu_drm.h +++ b/include/uapi/drm/virtgpu_drm.h @@ -26,6 +26,10 @@ #include "drm.h" +#if defined(__cplusplus) +extern "C" { +#endif + /* Please note that modifications to all structs defined here are * subject to backwards-compatibility constraints. * @@ -163,4 +167,8 @@ struct drm_virtgpu_get_caps { DRM_IOWR(DRM_COMMAND_BASE + DRM_VIRTGPU_GET_CAPS, \ struct drm_virtgpu_get_caps) +#if defined(__cplusplus) +} +#endif + #endif -- 2.20.1