Mesa (master): winsys/hgl: Add needed extern "C" to hgl winsys

Alexander von Gluck IV kallisti5 at kemper.freedesktop.org
Fri May 15 17:56:35 UTC 2015


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

Author: Alexander von Gluck IV <kallisti5 at unixzen.com>
Date:   Thu May 14 17:27:14 2015 -0500

winsys/hgl: Add needed extern "C" to hgl winsys

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/winsys/sw/hgl/hgl_sw_winsys.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h b/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
index bdcddfb..a81f890 100644
--- a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
+++ b/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
@@ -27,9 +27,16 @@
 #ifndef _HGL_SOFTWAREWINSYS_H
 #define _HGL_SOFTWAREWINSYS_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct sw_winsys;
 
 struct sw_winsys* hgl_create_sw_winsys(void);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif




More information about the mesa-commit mailing list