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

Fixes MSVC build failure due to inconsistent _ReadWriteBarrier
prototype.
This commit is contained in:
José Fonseca 2010-07-14 16:15:56 +01:00
parent d023fb3928
commit 467928c6e0

View file

@ -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 */