summaryrefslogtreecommitdiffstats
path: root/gralloc_drm.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.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.h')
-rw-r--r--gralloc_drm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gralloc_drm.h b/gralloc_drm.h
index 8059907..891526f 100644
--- a/gralloc_drm.h
+++ b/gralloc_drm.h
@@ -27,6 +27,10 @@
#include <hardware/gralloc.h>
#include "gralloc_drm_formats.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct gralloc_drm_t;
struct gralloc_drm_bo_t;
@@ -132,4 +136,7 @@ int gralloc_drm_bo_add_fb(struct gralloc_drm_bo_t *bo);
void gralloc_drm_bo_rm_fb(struct gralloc_drm_bo_t *bo);
int gralloc_drm_bo_post(struct gralloc_drm_bo_t *bo);
+#ifdef __cplusplus
+}
+#endif
#endif /* _GRALLOC_DRM_H_ */