From 6368ed542150956ff4ba8170a15bbc534143675c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 21 Nov 2012 11:47:35 +0100 Subject: Use configure test for aligned attribute. * configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): New test and ac_define. * cipher/cipher-internal.h, cipher/rijndael.c, random/rndhw.c: Use new macro instead of a fixed test for __GNUC__. -- We assume that compilers that grok "__attribute__ ((aligned (16)))" implement that in the same way as gcc does. In case it turns out that this is not the case we will need to do two more things: Detect such different behaviour and come up with a construct to allows the use of that other style of alignment forcing. --- random/rndhw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'random') diff --git a/random/rndhw.c b/random/rndhw.c index 0a5c9fa3..775d90f0 100644 --- a/random/rndhw.c +++ b/random/rndhw.c @@ -27,7 +27,7 @@ #undef USE_PADLOCK #ifdef ENABLE_PADLOCK_SUPPORT -# ifdef __GNUC__ +# ifdef HAVE_GCC_ATTRIBUTE_ALIGNED # if (defined (__i386__) && SIZEOF_UNSIGNED_LONG == 4) || defined(__x86_64__) # define USE_PADLOCK 1 # endif -- cgit v1.2.1