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. --- bits/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bits') diff --git a/bits/string.h b/bits/string.h index f8630d2c52..b88a6bc601 100644 --- a/bits/string.h +++ b/bits/string.h @@ -8,5 +8,7 @@ #ifndef _BITS_STRING_H #define _BITS_STRING_H 1 +/* Define if architecture can access unaligned multi-byte variables. */ +#define _STRING_ARCH_unaligned 0 #endif /* bits/string.h */ -- cgit v1.2.1