about summary refs log tree commit diff
path: root/iconv/skeleton.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-03-26 15:37:35 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-04-09 15:05:36 -0500
commit27822ce67fbf7f2b204992a410e7da2e8c1e2607 (patch)
tree6acda311114ef0da18e825c4d26e0013c321a679 /iconv/skeleton.c
parenta88ddc902b804a6156f6e5e5feb979754a3e789a (diff)
downloadglibc-27822ce67fbf7f2b204992a410e7da2e8c1e2607.tar.gz
glibc-27822ce67fbf7f2b204992a410e7da2e8c1e2607.tar.xz
glibc-27822ce67fbf7f2b204992a410e7da2e8c1e2607.zip
Define _STRING_ARCH_unaligned unconditionally
This patch defines _STRING_ARCH_unaligned to 0 on default bits/string.h
header to avoid undefined compiler warnings on platforms that do not
define it.  It also make adjustments in code where tests checked if macro
existed or not.
Diffstat (limited to 'iconv/skeleton.c')
-rw-r--r--iconv/skeleton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/skeleton.c b/iconv/skeleton.c
index 14318a6a53..c3f161ad01 100644
--- a/iconv/skeleton.c
+++ b/iconv/skeleton.c
@@ -204,7 +204,7 @@
 /* Define macros which can access unaligned buffers.  These macros are
    supposed to be used only in code outside the inner loops.  For the inner
    loops we have other definitions which allow optimized access.  */
-#ifdef _STRING_ARCH_unaligned
+#if _STRING_ARCH_unaligned
 /* We can handle unaligned memory access.  */
 # define get16u(addr) *((const uint16_t *) (addr))
 # define get32u(addr) *((const uint32_t *) (addr))
@@ -523,7 +523,7 @@ FUNCTION_NAME (struct __gconv_step *step, struct __gconv_step_data *data,
 	 INTERNAL, for which the subexpression evaluates to 1, but INTERNAL
 	 buffers are always aligned correctly.  */
 #define POSSIBLY_UNALIGNED \
-  (!defined _STRING_ARCH_unaligned					      \
+  (!_STRING_ARCH_unaligned					              \
    && (((FROM_LOOP_MIN_NEEDED_FROM != 1					      \
 	 && FROM_LOOP_MAX_NEEDED_FROM % FROM_LOOP_MIN_NEEDED_FROM == 0)	      \
 	&& (FROM_LOOP_MIN_NEEDED_TO != 1				      \