diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-07-22 21:32:34 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-07-22 21:32:34 +0900 |
commit | 7bf5edc4f2f225cf5d7030ff824fd3944735bbf9 (patch) | |
tree | 5cad65cd24944f70df99a581f1c267dae618d5d6 | |
parent | 7423582705d6c9d71e1caf8a1f892e8995bcd63e (diff) | |
download | portable-7bf5edc4f2f225cf5d7030ff824fd3944735bbf9.tar.gz portable-7bf5edc4f2f225cf5d7030ff824fd3944735bbf9.tar.bz2 portable-7bf5edc4f2f225cf5d7030ff824fd3944735bbf9.zip |
Add architecture define for s390/s390x and remove redundant sparc check
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | include/compat/machine/endian.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index acfe307..75b88fe 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -76,7 +76,6 @@ AC_ARG_ENABLE([tests], | |||
76 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) | 76 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) |
77 | 77 | ||
78 | AS_CASE([$host_cpu], | 78 | AS_CASE([$host_cpu], |
79 | [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"], | ||
80 | [*arm*], [host_cpu=arm], | 79 | [*arm*], [host_cpu=arm], |
81 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], | 80 | [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], |
82 | [i?86], [HOSTARCH=intel], | 81 | [i?86], [HOSTARCH=intel], |
diff --git a/include/compat/machine/endian.h b/include/compat/machine/endian.h index 54267a8..4dcb60d 100644 --- a/include/compat/machine/endian.h +++ b/include/compat/machine/endian.h | |||
@@ -41,6 +41,7 @@ | |||
41 | #define __STRICT_ALIGNMENT | 41 | #define __STRICT_ALIGNMENT |
42 | #if defined(__i386) || defined(__i386__) || \ | 42 | #if defined(__i386) || defined(__i386__) || \ |
43 | defined(__x86_64) || defined(__x86_64__) || \ | 43 | defined(__x86_64) || defined(__x86_64__) || \ |
44 | defined(__s390__) || defined(__s390x__) || \ | ||
44 | defined(__aarch64__) || \ | 45 | defined(__aarch64__) || \ |
45 | ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6) | 46 | ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6) |
46 | #undef __STRICT_ALIGNMENT | 47 | #undef __STRICT_ALIGNMENT |