summaryrefslogtreecommitdiffstats
path: root/contrib/blake2
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/blake2')
-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)