olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-undef-string.patch

25845f
Fix -Wundef warnings.  Fixed upstream as part of this commit:
25845f
25845f
commit 1570a72bb8359c9a3a64c4e22d9ea47ce6fcff31
25845f
Author: Will Newton <will.newton@linaro.org>
25845f
Date:   Thu Jun 26 16:00:44 2014 +0100
25845f
25845f
    string/memchr.c: Merge from gnulib
25845f
25845f
diff --git a/string/memchr.c b/string/memchr.c
25845f
index 1684bfa56885e883..d1880cfbaed951a6 100644
25845f
--- a/string/memchr.c
25845f
+++ b/string/memchr.c
25845f
@@ -32,11 +32,11 @@
25845f
 # include <memcopy.h>
25845f
 #endif
25845f
 
25845f
-#if HAVE_STDLIB_H || defined _LIBC
25845f
+#if defined _LIBC || HAVE_STDLIB_H
25845f
 # include <stdlib.h>
25845f
 #endif
25845f
 
25845f
-#if HAVE_LIMITS_H || defined _LIBC
25845f
+#if defined _LIBC || HAVE_LIMITS_H
25845f
 # include <limits.h>
25845f
 #endif
25845f