From: Emil Velikov Date: Thu, 7 Apr 2016 18:38:49 +0000 (+0100) Subject: drm/virgl: add extern C guard for the UAPI header X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3818081565b01f126c1fcb22f810466fa589cf97;p=linux-beck.git drm/virgl: add extern C guard for the UAPI header Cc: Dave Airlie Cc: Gerd Hoffmann Signed-off-by: Emil Velikov --- 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