diff mbox

[libdrm,2/2] headers: sync drm_sarea.h with airlied/drm-next

Message ID 20170531151036.19232-2-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom May 31, 2017, 3:10 p.m. UTC
Adds the C++ extern guards from
ebbb0e5cfd2ceb1150b1 drm: add extern C guard for the UAPI headers

Generated using `make headers_install` from airlied/drm-next
at commit 2a1720376adda5ecf8e636fbfb05339c7dad1c55

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 include/drm/drm_sarea.h | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Emil Velikov June 2, 2017, 4:31 p.m. UTC | #1
On 31 May 2017 at 16:10, Eric Engestrom <eric.engestrom@imgtec.com> wrote:
> Adds the C++ extern guards from
> ebbb0e5cfd2ceb1150b1 drm: add extern C guard for the UAPI headers
>
> Generated using `make headers_install` from airlied/drm-next
> at commit 2a1720376adda5ecf8e636fbfb05339c7dad1c55
>
> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>

Looks spot-on. Thanks!
For the series
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>

-Emil
diff mbox

Patch

diff --git a/include/drm/drm_sarea.h b/include/drm/drm_sarea.h
index 502934ed..93025be8 100644
--- a/include/drm/drm_sarea.h
+++ b/include/drm/drm_sarea.h
@@ -34,6 +34,10 @@ 
 
 #include "drm.h"
 
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
 /* SAREA area needs to be at least a page */
 #if defined(__alpha__)
 #define SAREA_MAX                       0x2000U
@@ -81,4 +85,8 @@  typedef struct drm_sarea_drawable drm_sarea_drawable_t;
 typedef struct drm_sarea_frame drm_sarea_frame_t;
 typedef struct drm_sarea drm_sarea_t;
 
+#if defined(__cplusplus)
+}
+#endif
+
 #endif				/* _DRM_SAREA_H_ */