From b74f644d3f60441cca23d6655f0cd84544b0d82f Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 16 Nov 2015 22:01:19 +0100 Subject: [PATCH] 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 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 0686f9f5..8edfda7c 100644 --- a/configure.ac +++ b/configure.ac @@ -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