mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Add alignment for Sun Studio 12
This commit is contained in:
parent
3fabb2d2be
commit
5e33d0aa37
1 changed files with 2 additions and 1 deletions
|
@ -126,7 +126,8 @@
|
||||||
|
|
||||||
/* The SCM_ALIGNED macro, when defined, can be used to instruct the compiler
|
/* The SCM_ALIGNED macro, when defined, can be used to instruct the compiler
|
||||||
* to honor the given alignment constraint. */
|
* to honor the given alignment constraint. */
|
||||||
#if defined __GNUC__
|
/* Sun Studio supports alignment since Sun Studio 12 */
|
||||||
|
#if defined __GNUC__ || (defined( __SUNPRO_C ) && (__SUNPRO_C - 0 >= 0x590))
|
||||||
# define SCM_ALIGNED(x) __attribute__ ((aligned (x)))
|
# define SCM_ALIGNED(x) __attribute__ ((aligned (x)))
|
||||||
#elif defined __INTEL_COMPILER
|
#elif defined __INTEL_COMPILER
|
||||||
# define SCM_ALIGNED(x) __declspec (align (x))
|
# define SCM_ALIGNED(x) __declspec (align (x))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue