From 5e33d0aa37ec4de6414dad032ab1ca4fbc5ff583 Mon Sep 17 00:00:00 2001 From: Dagobert Michelsen Date: Mon, 6 Feb 2012 09:45:41 +0100 Subject: [PATCH] Add alignment for Sun Studio 12 --- libguile/__scm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libguile/__scm.h b/libguile/__scm.h index 68ababd95..1c20bd71a 100644 --- a/libguile/__scm.h +++ b/libguile/__scm.h @@ -126,7 +126,8 @@ /* The SCM_ALIGNED macro, when defined, can be used to instruct the compiler * 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))) #elif defined __INTEL_COMPILER # define SCM_ALIGNED(x) __declspec (align (x)) -- 2.20.1