diff options
| author | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-07-15 01:25:34 +0900 |
|---|---|---|
| committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-07-21 22:13:39 +0900 |
| commit | 7423582705d6c9d71e1caf8a1f892e8995bcd63e (patch) | |
| tree | 399980fb1d1624c5970d14a29fbec9c086d9acc0 /include/compat/machine | |
| parent | fa26b5359b76570b471a1dc3b8ed5dfbd240520c (diff) | |
| download | portable-7423582705d6c9d71e1caf8a1f892e8995bcd63e.tar.gz portable-7423582705d6c9d71e1caf8a1f892e8995bcd63e.tar.bz2 portable-7423582705d6c9d71e1caf8a1f892e8995bcd63e.zip | |
Get __STRICT_ALIGNMENT from machine/endian.h
Diffstat (limited to 'include/compat/machine')
| -rw-r--r-- | include/compat/machine/endian.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/compat/machine/endian.h b/include/compat/machine/endian.h index 43dac8f..54267a8 100644 --- a/include/compat/machine/endian.h +++ b/include/compat/machine/endian.h | |||
| @@ -37,4 +37,14 @@ | |||
| 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(__aarch64__) || \ | ||
| 45 | ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6) | ||
| 46 | #undef __STRICT_ALIGNMENT | ||
| 47 | #endif | ||
| 48 | #endif | ||
| 49 | |||
| 40 | #endif | 50 | #endif |
