drm/virgl: add extern C guard for the UAPI header
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 7 Apr 2016 18:38:49 +0000 (19:38 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 13 May 2016 13:06:20 +0000 (14:06 +0100)
Cc: Dave Airlie <airlied@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
include/uapi/drm/virtgpu_drm.h

index c74f1f90cb373b3f7ee2bcf9f8013b4868225c2d..91a31ffed828ddfbad55967022d3a1df32db5340 100644 (file)
 
 #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