mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
gallium: Ensure prototypes are wrapped in extern "C".
Fixes MSVC build failure due to inconsistent _ReadWriteBarrier prototype.
This commit is contained in:
parent
d023fb3928
commit
467928c6e0
1 changed files with 11 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue