Add architecture define for s390/s390x and remove redundant sparc check

This commit is contained in:
kinichiro 2020-07-22 21:32:34 +09:00
parent 7423582705
commit 7bf5edc4f2
2 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,6 @@ AC_ARG_ENABLE([tests],
AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
AS_CASE([$host_cpu],
[*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"],
[*arm*], [host_cpu=arm],
[*amd64*], [host_cpu=x86_64 HOSTARCH=intel],
[i?86], [HOSTARCH=intel],

View File

@ -41,6 +41,7 @@
#define __STRICT_ALIGNMENT
#if defined(__i386) || defined(__i386__) || \
defined(__x86_64) || defined(__x86_64__) || \
defined(__s390__) || defined(__s390x__) || \
defined(__aarch64__) || \
((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6)
#undef __STRICT_ALIGNMENT