summaryrefslogtreecommitdiffstats
path: root/gralloc_drm_handle.h
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2013-04-11 10:41:50 +0300
committerTapani Pälli <tapani.palli@intel.com>2013-04-11 10:41:50 +0300
commit4b3db54505933738ec33f92ec7e2c5304cb18325 (patch)
tree0f834663a3ffee3805593baad1a871106ba8aec1 /gralloc_drm_handle.h
parent6acef2e0ae6cfae1817578e5fc22c04105a3a653 (diff)
downloadexternal_drm_gralloc-4b3db54505933738ec33f92ec7e2c5304cb18325.zip
external_drm_gralloc-4b3db54505933738ec33f92ec7e2c5304cb18325.tar.gz
external_drm_gralloc-4b3db54505933738ec33f92ec7e2c5304cb18325.tar.bz2
gralloc_drm: fix building errors with latest mesa
Change-Id: Ifdf23b59542152c364d3ed010a4cc82bbf1a0103 Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Diffstat (limited to 'gralloc_drm_handle.h')
-rw-r--r--gralloc_drm_handle.h7
1 files changed, 7 insertions, 0 deletions
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 <cutils/native_handle.h>
#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_ */