* configure.in: Check the protos of strchr ans strspn.

Replace strchr if needed.
* src/system.h: Provide the protos of strchr, strspn and memchr if
missing.
* lib/strchr.c: New.
* src/reader.c (symbols_save): Use strchr.
This commit is contained in:
Akim Demaille
2001-12-27 18:12:48 +00:00
parent 8adfa272f7
commit ec2da99ffe
5 changed files with 58 additions and 8 deletions

View File

@@ -85,8 +85,8 @@ AC_FUNC_ALLOCA
AC_FUNC_OBSTACK
AC_FUNC_ERROR_AT_LINE
AC_CHECK_FUNCS(mkstemp setlocale)
AC_CHECK_DECLS([stpcpy, strndup, strnlen, memchr])
AC_REPLACE_FUNCS(stpcpy strndup strnlen strspn memchr)
AC_CHECK_DECLS([stpcpy, strchr, strndup, strspn, strnlen, memchr])
AC_REPLACE_FUNCS(stpcpy strchr strndup strnlen strspn memchr)
jm_FUNC_MALLOC
jm_FUNC_REALLOC
jm_PREREQ_QUOTEARG