Get __STRICT_ALIGNMENT from machine/endian.h

This commit is contained in:
kinichiro
2020-07-15 01:25:34 +09:00
parent fa26b5359b
commit 7423582705
2 changed files with 10 additions and 13 deletions

View File

@@ -37,4 +37,14 @@
#endif
#ifndef __STRICT_ALIGNMENT
#define __STRICT_ALIGNMENT
#if defined(__i386) || defined(__i386__) || \
defined(__x86_64) || defined(__x86_64__) || \
defined(__aarch64__) || \
((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6)
#undef __STRICT_ALIGNMENT
#endif
#endif
#endif