]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/msm: add extern C guard for the UAPI header
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 7 Apr 2016 18:03:46 +0000 (19:03 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 13 May 2016 13:06:08 +0000 (14:06 +0100)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robdclark@gmail.com> (over irc)
include/uapi/drm/msm_drm.h

index 254d3e92d18e7d93177fbe0fcf218a87f95a07dc..bf19d2cd907810fb3ea0f19564a2cec6ce7496bf 100644 (file)
 
 #include "drm.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /* Please note that modifications to all structs defined here are
  * subject to backwards-compatibility constraints:
  *  1) Do not use pointers, use __u64 instead for 32 bit / 64 bit
@@ -217,4 +221,8 @@ struct drm_msm_wait_fence {
 #define DRM_IOCTL_MSM_GEM_SUBMIT       DRM_IOWR(DRM_COMMAND_BASE + DRM_MSM_GEM_SUBMIT, struct drm_msm_gem_submit)
 #define DRM_IOCTL_MSM_WAIT_FENCE       DRM_IOW (DRM_COMMAND_BASE + DRM_MSM_WAIT_FENCE, struct drm_msm_wait_fence)
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif /* __MSM_DRM_H__ */