Replace CPU_ALIGNED_ACCESS_REQUIRED with CPU_UNALIGNED_ACCESS

Instead of defining a macro when aligned memory access is required,
define one when unaligned memory access is supported.

Safer when cross-compiling or not using autoconf
This commit is contained in:
Frank Denis 2015-11-16 22:01:19 +01:00
parent 7371f0dca4
commit b74f644d3f

View File

@ -519,9 +519,9 @@ AS_CASE([$host_cpu],
]], [[]])], [aligned_access_required=no], [])]
)
AS_IF([test "x$aligned_access_required" = "xyes"],
[AC_MSG_RESULT(yes)
AC_DEFINE([CPU_ALIGNED_ACCESS_REQUIRED], [1], [data alignment is required])],
[AC_MSG_RESULT(no)])
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_DEFINE([CPU_UNALIGNED_ACCESS], [1], [unaligned memory access is supported])])
dnl Checks for functions and headers