]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Clean up HAVE_CONFIG_H and STDC_HEADERS.
authorRoland McGrath <roland@hack.frob.com>
Sat, 21 Jun 2014 03:04:47 +0000 (20:04 -0700)
committerRoland McGrath <roland@hack.frob.com>
Sat, 21 Jun 2014 03:04:47 +0000 (20:04 -0700)
ChangeLog
catgets/Makefile
include/libc-symbols.h
locale/Makefile
stdlib/strtol_l.c

index 8998b856d9c20e36be3c6a7af9327334dda278da..99243fbe2955831348a953bcd725c38b20c3fcb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-06-20  Roland McGrath  <roland@hack.frob.com>
 
+       * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
+       * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
+       * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
+       * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
+
        * nptl/allocatestack.c: Include <stack-aliasing.h>.
        * nptl/stack-aliasing.h: New file.
        * sysdeps/i386/i686/stack-aliasing.h: New file.
index 50d972e65dd1f10dcbcc3242629c9b38aacb1d69..4a03eba377747b1e92e3f5af3a71d862cd5a80c5 100644 (file)
@@ -46,8 +46,7 @@ include ../Rules
 
 $(objpfx)gencat: $(gencat-modules:%=$(objpfx)%.o)
 
-catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' \
-           -DHAVE_CONFIG_H
+catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"'
 
 CPPFLAGS-gencat = -DNOT_IN_libc
 
index 4b233be0bd0f6a0b95aea2c0fd1d26ccd419230f..03061aed9d9692b5cd1c2ac56f37a31ff6de2f82 100644 (file)
 
 #include <config.h>
 
+/* Define this for the benefit of portable GNU code that wants to check it.
+   Code that checks with #if will not #include <config.h> again, since we've
+   already done it (and this file is implicitly included in every compile,
+   via -include).  Code that checks with #ifdef will #include <config.h>,
+   but that file should always be idempotent (i.e., it's just #define/#undef
+   and nothing else anywhere should be changing the macro state it touches),
+   so it's harmless.  */
+#define HAVE_CONFIG_H  0
+
+/* Define this for the benefit of portable GNU code that wants to check it.
+   Of course, it's never false when building libc!  */
+#define STDC_HEADERS   1
+
 /* The symbols in all the user (non-_) macros are C symbols.  */
 
 #if !defined HAVE_ASM_WEAK_DIRECTIVE && !defined HAVE_ASM_WEAKEXT_DIRECTIVE
index eeff2cbd78226179cc5c8c78271edce45c972b4c..e4c387836cd3b05fbed83f50ce22ec27c6d5625d 100644 (file)
@@ -89,7 +89,7 @@ CPPFLAGS-locale-programs = -DLOCALE_PATH='$(localepath)' \
                           -DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
                           -DREPERTOIREMAP_PATH='"$(i18ndir)/repertoiremaps"' \
                           -DLOCSRCDIR='"$(i18ndir)/locales"' \
-                          -DHAVE_CONFIG_H -DNOT_IN_libc
+                          -DNOT_IN_libc
 
 CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
 CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
index c77b43dc0ce75794233d6b10266f1a94a72a77e3..97351c5d3e8e2547152fc495e5e17492696f1e98 100644 (file)
@@ -24,7 +24,6 @@
 
 #ifdef _LIBC
 # define USE_NUMBER_GROUPING
-# define STDC_HEADERS
 # define HAVE_LIMITS_H
 #endif