aboutsummaryrefslogtreecommitdiff
path: root/include/compat/machine/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat/machine/endian.h')
-rw-r--r--include/compat/machine/endian.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/compat/machine/endian.h b/include/compat/machine/endian.h
index 43dac8f..4dcb60d 100644
--- a/include/compat/machine/endian.h
+++ b/include/compat/machine/endian.h
@@ -37,4 +37,15 @@
37 37
38#endif 38#endif
39 39
40#ifndef __STRICT_ALIGNMENT
41#define __STRICT_ALIGNMENT
42#if defined(__i386) || defined(__i386__) || \
43 defined(__x86_64) || defined(__x86_64__) || \
44 defined(__s390__) || defined(__s390x__) || \
45 defined(__aarch64__) || \
46 ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6)
47#undef __STRICT_ALIGNMENT
48#endif
49#endif
50
40#endif 51#endif