gallium: Ensure prototypes are wrapped in extern "C".
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 14 Jul 2010 15:15:56 +0000 (16:15 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 14 Jul 2010 15:15:56 +0000 (16:15 +0100)
Fixes MSVC build failure due to inconsistent _ReadWriteBarrier
prototype.

src/gallium/include/pipe/p_compiler.h

index 619a62f8f1403952899cddb739f26dcca76eb85d..0358c14e24b03b3cee615292739278299b6b8663 100644 (file)
 #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 */