Explorar o código

drm/virgl: add extern C guard for the UAPI header

Cc: Dave Airlie <airlied@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Emil Velikov %!s(int64=9) %!d(string=hai) anos
pai
achega
3818081565
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      include/uapi/drm/virtgpu_drm.h

+ 8 - 0
include/uapi/drm/virtgpu_drm.h

@@ -26,6 +26,10 @@
 
 
 #include "drm.h"
 #include "drm.h"
 
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /* Please note that modifications to all structs defined here are
 /* Please note that modifications to all structs defined here are
  * subject to backwards-compatibility constraints.
  * subject to backwards-compatibility constraints.
  *
  *
@@ -163,4 +167,8 @@ struct drm_virtgpu_get_caps {
 	DRM_IOWR(DRM_COMMAND_BASE + DRM_VIRTGPU_GET_CAPS, \
 	DRM_IOWR(DRM_COMMAND_BASE + DRM_VIRTGPU_GET_CAPS, \
 	struct drm_virtgpu_get_caps)
 	struct drm_virtgpu_get_caps)
 
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif
 #endif