[PATCH] intel: wrap intel_bufmgr.h C code for C++ compilation/linking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(We need this include in porting changes for the OpenGL ES
conformance suite.)

Signed-off-by: Tapani Pälli <tapani.palli@xxxxxxxxx>
---
 intel/intel_bufmgr.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/intel/intel_bufmgr.h b/intel/intel_bufmgr.h
index 285919e..f061454 100644
--- a/intel/intel_bufmgr.h
+++ b/intel/intel_bufmgr.h
@@ -38,6 +38,10 @@
 #include <stdint.h>
 #include <stdio.h>
 
+#if defined(__cplusplus) || defined(c_plusplus)
+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) || defined(c_plusplus)
+}
+#endif
+
 #endif /* INTEL_BUFMGR_H */
-- 
2.1.0

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux