]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix __STRICT_ANSI__ -Wundef warnings
authorWill Newton <will.newton@linaro.org>
Mon, 17 Mar 2014 11:06:02 +0000 (11:06 +0000)
committerWill Newton <will.newton@linaro.org>
Mon, 17 Mar 2014 16:05:23 +0000 (16:05 +0000)
ChangeLog:

2014-03-17  Will Newton  <will.newton@linaro.org>

* argp/argp-fmtstream.h: Check whether
__STRICT_ANSI__ is defined with #ifdef rather
than #if.
* argp/argp.h: Likewise.

ChangeLog
argp/argp-fmtstream.h
argp/argp.h

index 4b33175657afdb8d3edc82431283d0f405018275..37d34f644420f2b7e31a49108f95da267bcc546c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-03-17  Will Newton  <will.newton@linaro.org>
 
+       * argp/argp-fmtstream.h: Check whether
+       __STRICT_ANSI__ is defined with #ifdef rather
+       than #if.
+       * argp/argp.h: Likewise.
+
        * libio/genops.c: Check whether
        _IO_JUMPS_OFFSET is defined with #ifdef rather
        than #if.
index a5a101965cc85d9cbf7a98243340637f61843e9a..1ed28345862326e8779334de4fd40704b714e7d2 100644 (file)
 
 #ifndef __attribute__
 /* This feature is available in gcc versions 2.5 and later.  */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || \
+  defined __STRICT_ANSI__
 #  define __attribute__(Spec) /* empty */
 # endif
 /* The __-protected variants of `format' and `printf' attributes
    are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || __STRICT_ANSI__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || \
+  defined __STRICT_ANSI__
 #  define __format__ format
 #  define __printf__ printf
 # endif
index 3845172afa1632832ad866b3850b68b41ccb3dd4..0868228f8329d86106d015a37370f40ba671c79d 100644 (file)
 
 #ifndef __attribute__
 /* This feature is available in gcc versions 2.5 and later.  */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || \
+  defined __STRICT_ANSI__
 #  define __attribute__(Spec) /* empty */
 # endif
 /* The __-protected variants of `format' and `printf' attributes
    are accepted by gcc versions 2.6.4 (effectively 2.7) and later.  */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || __STRICT_ANSI__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) || \
+  defined __STRICT_ANSI__
 #  define __format__ format
 #  define __printf__ printf
 # endif