summaryrefslogtreecommitdiff
path: root/string/bits/string2.h
diff options
context:
space:
mode:
Diffstat (limited to 'string/bits/string2.h')
-rw-r--r--string/bits/string2.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h
index aedadf439c..4d67c57a77 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -166,8 +166,9 @@ __STRING2_COPY_TYPE (8);
# endif
/* GCC optimizes memset(s, 0, n) but not bzero(s, n). */
-# if defined __GNUC__ && __GNUC__ >= 2
-# define __bzero(s, n) __builtin_memset(s, '\0', n)
+#if defined __GNUC__ \
+ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 90))
+# define __bzero(s, n) __builtin_memset (s, '\0', n)
# endif
#endif