summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/regint.h b/regint.h
index 80d3523126..97b2e1ba62 100644
--- a/regint.h
+++ b/regint.h
@@ -48,6 +48,10 @@
#endif
#endif
+#if !defined(UNALIGNED_WORD_ACCESS) && defined(__GNUC__) && __GNUC__ >= 6
+# define UNALIGNED_WORD_ACCESS 0
+#endif
+
#ifndef UNALIGNED_WORD_ACCESS
#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \