浏览代码

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

Cc: Thomas Hellstrom <thellstrom@vmware.com>
Cc: Brian Paul <brianp@vmware.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Sinclair Yeh <syeh@vmware.com>
Emil Velikov 9 年之前
父节点
当前提交
d3450e009f
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      include/uapi/drm/vmwgfx_drm.h

+ 9 - 0
include/uapi/drm/vmwgfx_drm.h

@@ -30,6 +30,10 @@
 
 
 #include "drm.h"
 #include "drm.h"
 
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 #define DRM_VMW_MAX_SURFACE_FACES 6
 #define DRM_VMW_MAX_SURFACE_FACES 6
 #define DRM_VMW_MAX_MIP_LEVELS 24
 #define DRM_VMW_MAX_MIP_LEVELS 24
 
 
@@ -1087,4 +1091,9 @@ union drm_vmw_extended_context_arg {
 	enum drm_vmw_extended_context req;
 	enum drm_vmw_extended_context req;
 	struct drm_vmw_context_arg rep;
 	struct drm_vmw_context_arg rep;
 };
 };
+
+#if defined(__cplusplus)
+}
+#endif
+
 #endif
 #endif