diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-08 22:27:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-08 22:27:04 +0000 |
commit | 544fea1f9f6e29eda29a616bbafd47b908ad7b6f (patch) | |
tree | 7d1059216e3692b0cb3480508c8eab823dd928d8 /contrib/blake2/blake2.h | |
parent | 7f1ad00467415ca80d22e9865dab0792a9ee27fa (diff) | |
download | rspamd-544fea1f9f6e29eda29a616bbafd47b908ad7b6f.tar.gz rspamd-544fea1f9f6e29eda29a616bbafd47b908ad7b6f.zip |
Unify align macro.
Diffstat (limited to 'contrib/blake2/blake2.h')
-rw-r--r-- | contrib/blake2/blake2.h | 6 |
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) |