diff options
author | Bruno Haible <bruno@clisp.org> | 2010-03-08 01:39:41 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-03-08 03:11:14 +0100 |
commit | f25e4400791ad31ed833cc4b784bde21ca4414e4 (patch) | |
tree | 6fcc8d3190cee1905ab06b9550cacc7ac7c140a6 /modules/sys_stat | |
parent | 801187706fd1ed0f6a744a1cfc85cd88da01282d (diff) | |
download | gnulib-f25e4400791ad31ed833cc4b784bde21ca4414e4.tar.gz |
sys_stat: Avoid #define replacements in C++ mode.
Diffstat (limited to 'modules/sys_stat')
-rw-r--r-- | modules/sys_stat | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/sys_stat b/modules/sys_stat index f349e133a1..059c2b8bf0 100644 --- a/modules/sys_stat +++ b/modules/sys_stat @@ -8,6 +8,7 @@ m4/unistd_h.m4 Depends-on: arg-nonnull +c++defs include_next time warn-on-use @@ -21,7 +22,7 @@ BUILT_SOURCES += sys/stat.h # We need the following in order to create <sys/stat.h> when the system # has one that is incomplete. -sys/stat.h: sys_stat.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H) +sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) $(AM_V_at)$(MKDIR_P) sys $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ @@ -60,6 +61,7 @@ sys/stat.h: sys_stat.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H) -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \ -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \ -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|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)/sys_stat.in.h; \ |