Mesa (master): gallium: Ensure prototypes are wrapped in extern "C".

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Jul 14 15:16:44 UTC 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Wed Jul 14 16:15:56 2010 +0100

gallium: Ensure prototypes are wrapped in extern "C".

Fixes MSVC build failure due to inconsistent _ReadWriteBarrier
prototype.

---

 src/gallium/include/pipe/p_compiler.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/gallium/include/pipe/p_compiler.h b/src/gallium/include/pipe/p_compiler.h
index 619a62f..0358c14 100644
--- a/src/gallium/include/pipe/p_compiler.h
+++ b/src/gallium/include/pipe/p_compiler.h
@@ -60,6 +60,11 @@
 #include <stdbool.h>
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 #if !defined(__HAIKU__) && !defined(__USE_MISC)
 typedef unsigned int       uint;
 typedef unsigned short     ushort;
@@ -243,4 +248,10 @@ void _ReadWriteBarrier(void);
 #define unlikely(x) !!(x)
 #endif
 
+
+#if defined(__cplusplus)
+}
+#endif
+
+
 #endif /* P_COMPILER_H */




More information about the mesa-commit mailing list