diff options
author | Bruno Haible <bruno@clisp.org> | 2011-09-11 21:15:40 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-09-11 21:15:40 +0200 |
commit | 19b6ec55b1e70fc29dd9600e0b3c262b06c47c0b (patch) | |
tree | ff35dfb57081cccf57ac31ec32a375f76110c610 /modules/strings | |
parent | 28d57000306f68f4ef8f0ada970c5733f9ed99f4 (diff) | |
download | gnulib-19b6ec55b1e70fc29dd9600e0b3c262b06c47c0b.tar.gz |
strings: Don't assume <strings.h> exists.
* lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
* m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
* modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
* doc/posix-headers/strings.texi: Mention the MSVC problem.
Diffstat (limited to 'modules/strings')
-rw-r--r-- | modules/strings | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/strings b/modules/strings index 905a45c6ed..ced757dec9 100644 --- a/modules/strings +++ b/modules/strings @@ -24,6 +24,7 @@ strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \ + -e 's|@''HAVE_STRINGS_H''@|$(HAVE_STRINGS_H)|g' \ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |