From b1c1f5c400f4c5dfd5405c210fcc9e019b734335 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 7 Apr 2016 19:00:35 +0100 Subject: [PATCH] drm/i915: add extern C guard for the UAPI header Cc: Jani Nikula Signed-off-by: Emil Velikov Acked-by: Daniel Vetter --- include/uapi/drm/i915_drm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h index a5524cc95ff8..c17d63d8b543 100644 --- a/include/uapi/drm/i915_drm.h +++ b/include/uapi/drm/i915_drm.h @@ -29,6 +29,10 @@ #include "drm.h" +#if defined(__cplusplus) +extern "C" { +#endif + /* Please note that modifications to all structs defined here are * subject to backwards-compatibility constraints. */ @@ -1170,4 +1174,8 @@ struct drm_i915_gem_context_param { __u64 value; }; +#if defined(__cplusplus) +} +#endif + #endif /* _UAPI_I915_DRM_H_ */ -- 2.20.1