|
|
c6d234 |
commit 26ffd5e6c7f110cc439bb054fac9567885ffc197
|
|
|
c6d234 |
Author: Roland McGrath <roland@hack.frob.com>
|
|
|
c6d234 |
Date: Fri Jun 20 20:04:47 2014 -0700
|
|
|
c6d234 |
|
|
|
c6d234 |
Clean up HAVE_CONFIG_H and STDC_HEADERS.
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflicts:
|
|
|
c6d234 |
locale/Makefile
|
|
|
c6d234 |
|
|
|
c6d234 |
Due to separate IS_IN backport in glibc-rh1256317-2.patch.
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/catgets/Makefile b/catgets/Makefile
|
|
|
c6d234 |
index 361894a94d6cb740..a1e3e376773de28c 100644
|
|
|
c6d234 |
--- a/catgets/Makefile
|
|
|
c6d234 |
+++ b/catgets/Makefile
|
|
|
c6d234 |
@@ -39,8 +39,7 @@ include ../Rules
|
|
|
c6d234 |
|
|
|
c6d234 |
$(objpfx)gencat: $(gencat-modules:%=$(objpfx)%.o)
|
|
|
c6d234 |
|
|
|
c6d234 |
-catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' \
|
|
|
c6d234 |
- -DHAVE_CONFIG_H
|
|
|
c6d234 |
+catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"'
|
|
|
c6d234 |
|
|
|
c6d234 |
generated = de.msg test1.cat test1.h test2.cat test2.h sample.SJIS.cat \
|
|
|
c6d234 |
test-gencat.h
|
|
|
c6d234 |
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
|
|
|
c6d234 |
index 0f47900922d4099b..bf98c33cf3ba9df6 100644
|
|
|
c6d234 |
--- a/include/libc-symbols.h
|
|
|
c6d234 |
+++ b/include/libc-symbols.h
|
|
|
c6d234 |
@@ -59,6 +59,19 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#include <config.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
+/* Define this for the benefit of portable GNU code that wants to check it.
|
|
|
c6d234 |
+ Code that checks with #if will not #include <config.h> again, since we've
|
|
|
c6d234 |
+ already done it (and this file is implicitly included in every compile,
|
|
|
c6d234 |
+ via -include). Code that checks with #ifdef will #include <config.h>,
|
|
|
c6d234 |
+ but that file should always be idempotent (i.e., it's just #define/#undef
|
|
|
c6d234 |
+ and nothing else anywhere should be changing the macro state it touches),
|
|
|
c6d234 |
+ so it's harmless. */
|
|
|
c6d234 |
+#define HAVE_CONFIG_H 0
|
|
|
c6d234 |
+
|
|
|
c6d234 |
+/* Define this for the benefit of portable GNU code that wants to check it.
|
|
|
c6d234 |
+ Of course, it's never false when building libc! */
|
|
|
c6d234 |
+#define STDC_HEADERS 1
|
|
|
c6d234 |
+
|
|
|
c6d234 |
/* The symbols in all the user (non-_) macros are C symbols. */
|
|
|
c6d234 |
|
|
|
c6d234 |
#if !defined HAVE_ASM_WEAK_DIRECTIVE && !defined HAVE_ASM_WEAKEXT_DIRECTIVE
|
|
|
c6d234 |
diff --git a/locale/Makefile b/locale/Makefile
|
|
|
c6d234 |
index 2755340dd91bfad6..edd982fe87ca66cb 100644
|
|
|
c6d234 |
--- a/locale/Makefile
|
|
|
c6d234 |
+++ b/locale/Makefile
|
|
|
c6d234 |
@@ -87,8 +87,7 @@ locale-CPPFLAGS = -DLOCALEDIR='"$(localedir)"' \
|
|
|
c6d234 |
CPPFLAGS-locale-programs = -DLOCALE_PATH='$(localepath)' \
|
|
|
c6d234 |
-DCHARMAP_PATH='"$(i18ndir)/charmaps"' \
|
|
|
c6d234 |
-DREPERTOIREMAP_PATH='"$(i18ndir)/repertoiremaps"' \
|
|
|
c6d234 |
- -DLOCSRCDIR='"$(i18ndir)/locales"' \
|
|
|
c6d234 |
- -DHAVE_CONFIG_H
|
|
|
c6d234 |
+ -DLOCSRCDIR='"$(i18ndir)/locales"'
|
|
|
c6d234 |
|
|
|
c6d234 |
CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
|
|
|
c6d234 |
CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
|
|
|
c6d234 |
diff --git a/stdlib/strtol_l.c b/stdlib/strtol_l.c
|
|
|
c6d234 |
index 615190821e24b41a..8174d22f060c2149 100644
|
|
|
c6d234 |
--- a/stdlib/strtol_l.c
|
|
|
c6d234 |
+++ b/stdlib/strtol_l.c
|
|
|
c6d234 |
@@ -25,7 +25,6 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
#ifdef _LIBC
|
|
|
c6d234 |
# define USE_NUMBER_GROUPING
|
|
|
c6d234 |
-# define STDC_HEADERS
|
|
|
c6d234 |
# define HAVE_LIMITS_H
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|