olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

00db10
commit afb466fcb034f594e083b5664fa60a0d4f54c41b
00db10
Author: Will Newton <will.newton@linaro.org>
00db10
Date:   Mon Mar 17 11:06:02 2014 +0000
00db10
00db10
    Fix __STRICT_ANSI__ -Wundef warnings
00db10
    
00db10
    ChangeLog:
00db10
    
00db10
    2014-03-17  Will Newton  <will.newton@linaro.org>
00db10
    
00db10
            * argp/argp-fmtstream.h: Check whether
00db10
            __STRICT_ANSI__ is defined with #ifdef rather
00db10
            than #if.
00db10
            * argp/argp.h: Likewise.
00db10
00db10
diff --git a/argp/argp-fmtstream.h b/argp/argp-fmtstream.h
00db10
index f4140b924c13a302..61c45bf86b6bf8d5 100644
00db10
--- a/argp/argp-fmtstream.h
00db10
+++ b/argp/argp-fmtstream.h
00db10
@@ -31,12 +31,14 @@
00db10
 
00db10
 #ifndef __attribute__
00db10
 /* This feature is available in gcc versions 2.5 and later.  */
00db10
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
00db10
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || \
00db10
+  defined __STRICT_ANSI__
00db10
 #  define __attribute__(Spec) /* empty */
00db10
 # endif
00db10
 /* The __-protected variants of `format' and `printf' attributes
00db10
    are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
00db10
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || __STRICT_ANSI__
00db10
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || \
00db10
+  defined __STRICT_ANSI__
00db10
 #  define __format__ format
00db10
 #  define __printf__ printf
00db10
 # endif
00db10
diff --git a/argp/argp.h b/argp/argp.h
00db10
index 8fb7098061443ba8..37544fe44a102574 100644
00db10
--- a/argp/argp.h
00db10
+++ b/argp/argp.h
00db10
@@ -38,12 +38,14 @@
00db10
 
00db10
 #ifndef __attribute__
00db10
 /* This feature is available in gcc versions 2.5 and later.  */
00db10
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
00db10
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || \
00db10
+  defined __STRICT_ANSI__
00db10
 #  define __attribute__(Spec) /* empty */
00db10
 # endif
00db10
 /* The __-protected variants of `format' and `printf' attributes
00db10
    are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
00db10
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || __STRICT_ANSI__
00db10
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || \
00db10
+  defined __STRICT_ANSI__
00db10
 #  define __format__ format
00db10
 #  define __printf__ printf
00db10
 # endif