summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/modes/cbc128.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/crypto/modes/cbc128.c')
-rw-r--r--deps/openssl/openssl/crypto/modes/cbc128.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/deps/openssl/openssl/crypto/modes/cbc128.c b/deps/openssl/openssl/crypto/modes/cbc128.c
index 3d3782cbe1..8f8bd563b9 100644
--- a/deps/openssl/openssl/crypto/modes/cbc128.c
+++ b/deps/openssl/openssl/crypto/modes/cbc128.c
@@ -48,8 +48,7 @@
*
*/
-#include <openssl/crypto.h>
-#include "modes_lcl.h"
+#include "modes.h"
#include <string.h>
#ifndef MODES_DEBUG
@@ -59,7 +58,12 @@
#endif
#include <assert.h>
-#ifndef STRICT_ALIGNMENT
+#define STRICT_ALIGNMENT 1
+#if defined(__i386) || defined(__i386__) || \
+ defined(__x86_64) || defined(__x86_64__) || \
+ defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || \
+ defined(__s390__) || defined(__s390x__)
+# undef STRICT_ALIGNMENT
# define STRICT_ALIGNMENT 0
#endif