diff options
author | Bruno Haible <bruno@clisp.org> | 2020-07-08 03:19:54 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-07-08 03:19:54 +0200 |
commit | 707090c9ed6a16bc4b152be300578761e34b2bed (patch) | |
tree | 285ceb1cfcf1caa1e8c759406631b8f37ccbf0b4 /lib/string.in.h | |
parent | cfcb5fc6b95ca04bd3c8637d4027641d07c15cbe (diff) | |
download | gnulib-707090c9ed6a16bc4b152be300578761e34b2bed.tar.gz |
memchr: Remove support for some very old platforms.
* m4/memchr-obsolete.m4: Remove file.
* modules/memchr-obsolete: Remove file.
* m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
absent. Don't define HAVE_MEMCHR.
* lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
* modules/memchr (Depends-on): Remove memchr-obsolete.
(configure.ac): Assume HAVE_MEMCHR is 1.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
HAVE_MEMCHR.
* modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
* doc/posix-functions/memchr.texi: Don't mention module
'memchr-obsolete'.
* m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
* m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
* modules/strnlen (Depends-on): Remove memchr-obsolete.
Diffstat (limited to 'lib/string.in.h')
-rw-r--r-- | lib/string.in.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/string.in.h b/lib/string.in.h index 77ccf94e28..c18efa7c0a 100644 --- a/lib/string.in.h +++ b/lib/string.in.h @@ -134,11 +134,6 @@ _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n) _GL_ARG_NONNULL ((1))); _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n)); # else -# if ! @HAVE_MEMCHR@ -_GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n) - _GL_ATTRIBUTE_PURE - _GL_ARG_NONNULL ((1))); -# endif /* On some systems, this function is defined as an overloaded function: extern "C" { const void * std::memchr (const void *, int, size_t); } extern "C++" { void * std::memchr (void *, int, size_t); } */ |