From 7ff877cb16fb5b2ba8a46dc681a213ddc760f084 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 8 Mar 2010 01:23:38 +0100 Subject: stdlib: Avoid #define replacements in C++ mode. --- modules/stdlib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/stdlib') diff --git a/modules/stdlib b/modules/stdlib index 9323458811..6f9959f965 100644 --- a/modules/stdlib +++ b/modules/stdlib @@ -7,6 +7,7 @@ m4/stdlib_h.m4 Depends-on: arg-nonnull +c++defs include_next stddef stdint @@ -21,7 +22,7 @@ BUILT_SOURCES += stdlib.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -stdlib.h: stdlib.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H) +stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ @@ -77,6 +78,7 @@ stdlib.h: stdlib.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H) -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ < $(srcdir)/stdlib.in.h; \ -- cgit v1.2.1