aboutsummaryrefslogtreecommitdiff
path: root/include/compat/machine/endian.h
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2020-09-12 16:48:46 -0500
committerBrent Cook <busterb@gmail.com>2020-09-12 16:48:46 -0500
commit693d4575e279253cf91ba7029f1106d3b5193d25 (patch)
tree03c67c7632fc0e05c0734b3e17452dad182c2a61 /include/compat/machine/endian.h
parenta2ea6495367de4b8bf5f3de125777280e5242a68 (diff)
parent7bf5edc4f2f225cf5d7030ff824fd3944735bbf9 (diff)
downloadportable-693d4575e279253cf91ba7029f1106d3b5193d25.tar.gz
portable-693d4575e279253cf91ba7029f1106d3b5193d25.tar.bz2
portable-693d4575e279253cf91ba7029f1106d3b5193d25.zip
Land #604, Get __STRICT_ALIGNMENT from machine/endian.h
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