diff options
author | Mike Gran <spk121@yahoo.com> | 2022-09-15 20:51:05 -0700 |
---|---|---|
committer | Mike Gran <spk121@yahoo.com> | 2022-10-14 08:40:23 -0700 |
commit | 9b357bace3850a9c6c03e8fb6b3b82f4e57da507 (patch) | |
tree | 155b0c51fdedaf0958180857b16f9c66b73c94d2 /libguile/filesys.c | |
parent | 128e0a3479980c0ac76716c425009206b774dfe3 (diff) | |
download | guile-9b357bace3850a9c6c03e8fb6b3b82f4e57da507.tar.gz |
Presume ISO C90 headers are always available
This includes <assert.h>, <ctype.h>, <errno.h>, <float.h>, <iso646.h>,
<limits.h>, <locale.h>, <math.h>, <setjmp.h>, <signal.h>, <stdarg.h>,
<stddef.h>, <stdio.h>, <stdlib.h>, <string.h>, <time.h>, <wchar.h>,
and <wctype.h>.
* configure.ac: don't check for <limits.h>, <string.h>, <time.h>, <assert.h>.
Remove AC_INCLUDES_DEFAULT macro
* libguile/bytevectors.c: include <limits.h>, remove HAVE_LIMITS_H
* libguile/filesys.c: include <string.h>, remove HAVE_STRING_H
* libguile/fports.c: include <string.h>, remove HAVE_STRING_H
* libguile/gen-scmconfig.c: remove HAVE_LIMITS_H, HAVE_TIME_H, STDC_HEADERS
Remove SCM_HAVE_STDC_HEADERS
* libguile/hash.c: include <wchar.h>, remove HAVE_WCHAR_H
* libguile/net_db.c: include <string.h>, remove HAVE_STRING_H
* libguile/numbers.h: remove SCM_HAVE_STDC_HEADERS
* libguile/regex-posix.c: include <wchar.h>, remove HAVE_WCHAR_H
(fixup_multibyte_match): always defined
(scm_regexp_exec): use fixup_multibyte_match
* libguile/scmsigs.c: remove STDC_HEADERS
* libguile/socket.c: include <string.h>, remove HAVE_STRING_H
* test-suite/standalone/test-unwind.c: include <string.h>, remove HAVE_STRING_H
Diffstat (limited to 'libguile/filesys.c')
-rw-r--r-- | libguile/filesys.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libguile/filesys.c b/libguile/filesys.c index 6247734e8..f182f6c79 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -43,6 +43,7 @@ #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> +#include <string.h> #ifdef HAVE_DIRECT_H #include <direct.h> @@ -67,10 +68,6 @@ #include <libc.h> #endif -#ifdef HAVE_STRING_H -#include <string.h> -#endif - #ifdef HAVE_PWD_H #include <pwd.h> #endif |