summaryrefslogtreecommitdiff
path: root/bits
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 /bits
parenta88ddc902b804a6156f6e5e5feb979754a3e789a (diff)
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 'bits')
-rw-r--r--bits/string.h2
1 files changed, 2 insertions, 0 deletions
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 */