summaryrefslogtreecommitdiff
path: root/cipher/cipher-internal.h
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 /cipher/cipher-internal.h
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 'cipher/cipher-internal.h')
-rw-r--r--cipher/cipher-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/cipher-internal.h b/cipher/cipher-internal.h
index 437e9c04..025bf2ec 100644
--- a/cipher/cipher-internal.h
+++ b/cipher/cipher-internal.h
@@ -31,7 +31,7 @@
We use the aligned attribute, thus it is only possible to implement
this with gcc. */
#undef NEED_16BYTE_ALIGNED_CONTEXT
-#if defined (__GNUC__)
+#ifdef HAVE_GCC_ATTRIBUTE_ALIGNED
# define NEED_16BYTE_ALIGNED_CONTEXT 1
#endif