aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-08 22:27:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-08 22:27:04 +0000
commit544fea1f9f6e29eda29a616bbafd47b908ad7b6f (patch)
tree7d1059216e3692b0cb3480508c8eab823dd928d8 /contrib
parent7f1ad00467415ca80d22e9865dab0792a9ee27fa (diff)
downloadrspamd-544fea1f9f6e29eda29a616bbafd47b908ad7b6f.tar.gz
rspamd-544fea1f9f6e29eda29a616bbafd47b908ad7b6f.zip
Unify align macro.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/blake2/blake2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/blake2/blake2.h b/contrib/blake2/blake2.h
index 433c429e0..b0c852284 100644
--- a/contrib/blake2/blake2.h
+++ b/contrib/blake2/blake2.h
@@ -17,10 +17,12 @@
#include <stddef.h>
#include <stdint.h>
+#ifndef ALIGN
#if defined(_MSC_VER)
-#define ALIGN(x) __declspec(align(x))
+# define ALIGN(x) __declspec(align(x))
#else
-#define ALIGN(x) __attribute__((aligned(x)))
+# define ALIGN(x) __attribute__((aligned(x)))
+#endif
#endif
#if defined(__cplusplus)