Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+8
+8
include/uapi/drm/qxl_drm.h
··· 26 26 27 27 #include "drm.h" 28 28 29 + #if defined(__cplusplus) 30 + extern "C" { 31 + #endif 32 + 29 33 /* Please note that modifications to all structs defined here are 30 34 * subject to backwards-compatibility constraints. 31 35 * ··· 150 146 #define DRM_IOCTL_QXL_ALLOC_SURF \ 151 147 DRM_IOWR(DRM_COMMAND_BASE + DRM_QXL_ALLOC_SURF,\ 152 148 struct drm_qxl_alloc_surf) 149 + 150 + #if defined(__cplusplus) 151 + } 152 + #endif 153 153 154 154 #endif