diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2016-04-07 14:38:49 -0400 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-05-13 09:06:20 -0400 |
commit | 3818081565b01f126c1fcb22f810466fa589cf97 (patch) | |
tree | b56e072e1b5819f7469e7b0fa28547bf7dcdac0e | |
parent | b6c2b64223d27ca579cce61fa5ffbf71b3f12a38 (diff) |
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>
-rw-r--r-- | include/uapi/drm/virtgpu_drm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/drm/virtgpu_drm.h b/include/uapi/drm/virtgpu_drm.h index c74f1f90cb37..91a31ffed828 100644 --- a/include/uapi/drm/virtgpu_drm.h +++ b/include/uapi/drm/virtgpu_drm.h | |||
@@ -26,6 +26,10 @@ | |||
26 | 26 | ||
27 | #include "drm.h" | 27 | #include "drm.h" |
28 | 28 | ||
29 | #if defined(__cplusplus) | ||
30 | extern "C" { | ||
31 | #endif | ||
32 | |||
29 | /* Please note that modifications to all structs defined here are | 33 | /* Please note that modifications to all structs defined here are |
30 | * subject to backwards-compatibility constraints. | 34 | * subject to backwards-compatibility constraints. |
31 | * | 35 | * |
@@ -163,4 +167,8 @@ struct drm_virtgpu_get_caps { | |||
163 | DRM_IOWR(DRM_COMMAND_BASE + DRM_VIRTGPU_GET_CAPS, \ | 167 | DRM_IOWR(DRM_COMMAND_BASE + DRM_VIRTGPU_GET_CAPS, \ |
164 | struct drm_virtgpu_get_caps) | 168 | struct drm_virtgpu_get_caps) |
165 | 169 | ||
170 | #if defined(__cplusplus) | ||
171 | } | ||
172 | #endif | ||
173 | |||
166 | #endif | 174 | #endif |