summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-08-07 10:37:57 +0300
committerTapani Pälli <tapani.palli@intel.com>2015-08-10 11:26:16 +0300
commitf1468e88461239d3060f146fae6c36cc7b85f366 (patch)
tree16f5bc54ad164af5a0485977af0742ad8da3c1b2 /intel
parent1c205749fe2171aaa69ce053a8f248e329bd72f7 (diff)
intel: wrap intel_bufmgr.h C code for C++ compilation/linking
We need this include in porting changes for the OpenGL ES conformance suite. v2: remove c_plusplus usage Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'intel')
-rw-r--r--intel/intel_bufmgr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/intel/intel_bufmgr.h b/intel/intel_bufmgr.h
index 285919e4..95eecb80 100644
--- a/intel/intel_bufmgr.h
+++ b/intel/intel_bufmgr.h
@@ -38,6 +38,10 @@
#include <stdint.h>
#include <stdio.h>
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
struct drm_clip_rect;
typedef struct _drm_intel_bufmgr drm_intel_bufmgr;
@@ -308,4 +312,8 @@ int drm_intel_get_eu_total(int fd, unsigned int *eu_total);
/** @{ */
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* INTEL_BUFMGR_H */