projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d023fb3
)
gallium: Ensure prototypes are wrapped in extern "C".
author
José Fonseca
<jfonseca@vmware.com>
Wed, 14 Jul 2010 15:15:56 +0000
(16:15 +0100)
committer
José 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
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_compiler.h
b/src/gallium/include/pipe/p_compiler.h
index 619a62f8f1403952899cddb739f26dcca76eb85d..0358c14e24b03b3cee615292739278299b6b8663 100644
(file)
--- 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 */