Mesa (master): st/egl: Add extern "C" wrapper to native.h.

Chia-I Wu olv at kemper.freedesktop.org
Wed Nov 3 09:50:39 UTC 2010


Module: Mesa
Branch: master
Commit: a5f4338fc4f9b4500c5754de237f77549b3cedf8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5f4338fc4f9b4500c5754de237f77549b3cedf8

Author: Chia-I Wu <olv at lunarg.com>
Date:   Mon Oct 11 16:29:43 2010 +0800

st/egl: Add extern "C" wrapper to native.h.

This allows a backend to be written in C++.

---

 src/gallium/state_trackers/egl/common/native.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/egl/common/native.h b/src/gallium/state_trackers/egl/common/native.h
index 07ff87a..5ee7956 100644
--- a/src/gallium/state_trackers/egl/common/native.h
+++ b/src/gallium/state_trackers/egl/common/native.h
@@ -34,6 +34,10 @@
 #include "pipe/p_state.h"
 #include "state_tracker/sw_winsys.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "native_modeset.h"
 
 /**
@@ -237,4 +241,8 @@ native_get_drm_platform(void);
 const struct native_platform *
 native_get_fbdev_platform(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _NATIVE_H_ */




More information about the mesa-commit mailing list