diff options
author | Bruno Haible <bruno@clisp.org> | 2010-03-08 00:51:34 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-03-08 03:11:09 +0100 |
commit | 7fe8aa4ab1b398dc20d6c35edb0aa4fc191363d9 (patch) | |
tree | 3d50ce92f28e98afe2a37cbd757f09a120f32e57 /modules/fcntl-h | |
parent | f9da356e1fd9cb418e4758220473e8bb2236e134 (diff) | |
download | gnulib-7fe8aa4ab1b398dc20d6c35edb0aa4fc191363d9.tar.gz |
fcntl-h: Avoid #define replacements in C++ mode.
Diffstat (limited to 'modules/fcntl-h')
-rw-r--r-- | modules/fcntl-h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/fcntl-h b/modules/fcntl-h index e25c155e2e..3f2305f2c9 100644 --- a/modules/fcntl-h +++ b/modules/fcntl-h @@ -8,6 +8,7 @@ m4/fcntl-o.m4 Depends-on: arg-nonnull +c++defs extensions include_next unistd @@ -21,7 +22,7 @@ BUILT_SOURCES += fcntl.h # We need the following in order to create <fcntl.h> when the system # doesn't have one that works with the given compiler. -fcntl.h: fcntl.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H) +fcntl.h: fcntl.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' \ @@ -35,6 +36,7 @@ fcntl.h: fcntl.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H) -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \ -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \ -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|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)/fcntl.in.h; \ |