瀏覽代碼

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

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Emil Velikov 9 年之前
父節點
當前提交
485c40b467
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      include/uapi/drm/qxl_drm.h

+ 8 - 0
include/uapi/drm/qxl_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.
  *
  *
@@ -147,4 +151,8 @@ struct drm_qxl_alloc_surf {
 	DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_ALLOC_SURF,\
 	DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_ALLOC_SURF,\
 		struct drm_qxl_alloc_surf)
 		struct drm_qxl_alloc_surf)
 
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif
 #endif