arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

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

147e83
Fix -Wundef warnings.  Upstream addressed this as part of this commit:
147e83
147e83
commit b100f9aa77027e4371154820ea8a0353bfd13223
147e83
Author: Will Newton <will.newton@linaro.org>
147e83
Date:   Mon Jun 23 16:53:30 2014 +0100
147e83
147e83
    malloc/obstack: Merge from gnulib
147e83
147e83
diff --git a/malloc/obstack.c b/malloc/obstack.c
147e83
index e3ce53f987727eca..2b103727e010b417 100644
147e83
--- a/malloc/obstack.c
147e83
+++ b/malloc/obstack.c
147e83
@@ -56,10 +56,10 @@
147e83
 #ifndef ELIDE_CODE
147e83
 
147e83
 
147e83
-# if HAVE_INTTYPES_H
147e83
+# if _LIBC || HAVE_INTTYPES_H
147e83
 #  include <inttypes.h>
147e83
 # endif
147e83
-# if HAVE_STDINT_H || defined _LIBC
147e83
+# if _LIBC || HAVE_STDINT_H
147e83
 #  include <stdint.h>
147e83
 # endif
147e83
 
147e83
diff --git a/malloc/obstack.h b/malloc/obstack.h
147e83
index a791823cf3f18348..69e92d1146b02eb1 100644
147e83
--- a/malloc/obstack.h
147e83
+++ b/malloc/obstack.h
147e83
@@ -250,13 +250,6 @@ extern int obstack_exit_failure;
147e83
 #define obstack_memory_used(h) _obstack_memory_used (h)
147e83
 
147e83
 #if defined __GNUC__
147e83
-/* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
147e83
-   does not implement __extension__.  But that compiler doesn't define
147e83
-   __GNUC_MINOR__.  */
147e83
-# if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
147e83
-#  define __extension__
147e83
-# endif
147e83
-
147e83
 /* For GNU C, if not -traditional,
147e83
    we can define these macros to compute all args only once
147e83
    without using a global variable.