mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 16:10:09 +01:00
gallium: Add support for Solaris Studio C++ compiler.
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
f34e2f484b
commit
cd62960a2e
1 changed files with 5 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ typedef unsigned char boolean;
|
|||
|
||||
|
||||
/* Macros for data alignment. */
|
||||
#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
|
||||
#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) || defined(__SUNPRO_CC)
|
||||
|
||||
/* See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Type-Attributes.html */
|
||||
#define PIPE_ALIGN_TYPE(_alignment, _type) _type __attribute__((aligned(_alignment)))
|
||||
|
|
@ -257,6 +257,10 @@ void _ReadWriteBarrier(void);
|
|||
#pragma intrinsic(_ReadWriteBarrier)
|
||||
#define PIPE_READ_WRITE_BARRIER() _ReadWriteBarrier()
|
||||
|
||||
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
||||
|
||||
#define PIPE_READ_WRITE_BARRIER() __machine_rw_barrier()
|
||||
|
||||
#else
|
||||
|
||||
#warning "Unsupported compiler"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue