summaryrefslogtreecommitdiff
path: root/random
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2012-11-21 11:47:35 +0100
committerWerner Koch <wk@gnupg.org>2012-11-21 11:47:35 +0100
commit6368ed542150956ff4ba8170a15bbc534143675c (patch)
tree2388176fc6735fbdd1a8c2f0dae01fabe8047c43 /random
parenta96974de734beb51a733a89b3283bcf7b433b54c (diff)
downloadlibgcrypt-6368ed542150956ff4ba8170a15bbc534143675c.tar.gz
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.
Diffstat (limited to 'random')
-rw-r--r--random/rndhw.c2
1 files changed, 1 insertions, 1 deletions
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