From 27822ce67fbf7f2b204992a410e7da2e8c1e2607 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 26 Mar 2014 15:37:35 -0500 Subject: 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. --- iconv/gconv_simple.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'iconv/gconv_simple.c') diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c index e11e2eea2d..f357713d93 100644 --- a/iconv/gconv_simple.c +++ b/iconv/gconv_simple.c @@ -112,7 +112,7 @@ internal_ucs4_loop (struct __gconv_step *step, return result; } -#ifndef _STRING_ARCH_unaligned +#if !_STRING_ARCH_unaligned static inline int __attribute ((always_inline)) internal_ucs4_loop_unaligned (struct __gconv_step *step, @@ -289,7 +289,7 @@ ucs4_internal_loop (struct __gconv_step *step, return result; } -#ifndef _STRING_ARCH_unaligned +#if !_STRING_ARCH_unaligned static inline int __attribute ((always_inline)) ucs4_internal_loop_unaligned (struct __gconv_step *step, @@ -478,7 +478,7 @@ internal_ucs4le_loop (struct __gconv_step *step, return result; } -#ifndef _STRING_ARCH_unaligned +#if !_STRING_ARCH_unaligned static inline int __attribute ((always_inline)) internal_ucs4le_loop_unaligned (struct __gconv_step *step, @@ -658,7 +658,7 @@ ucs4le_internal_loop (struct __gconv_step *step, return result; } -#ifndef _STRING_ARCH_unaligned +#if !_STRING_ARCH_unaligned static inline int __attribute ((always_inline)) ucs4le_internal_loop_unaligned (struct __gconv_step *step, -- cgit v1.2.3-70-g09d2