From 4b3db54505933738ec33f92ec7e2c5304cb18325 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Thu, 11 Apr 2013 10:41:50 +0300 Subject: gralloc_drm: fix building errors with latest mesa Change-Id: Ifdf23b59542152c364d3ed010a4cc82bbf1a0103 Signed-off-by: Chih-Wei Huang --- gralloc_drm_handle.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gralloc_drm_handle.h') diff --git a/gralloc_drm_handle.h b/gralloc_drm_handle.h index 70a1ae8..7d431e4 100644 --- a/gralloc_drm_handle.h +++ b/gralloc_drm_handle.h @@ -27,6 +27,10 @@ #include #include "gralloc_drm_formats.h" +#ifdef __cplusplus +extern "C" { +#endif + struct gralloc_drm_handle_t { native_handle_t base; @@ -63,4 +67,7 @@ static inline struct gralloc_drm_handle_t *gralloc_drm_handle(buffer_handle_t _h return handle; } +#ifdef __cplusplus +} +#endif #endif /* _GRALLOC_DRM_HANDLE_H_ */ -- cgit v1.1