Mercurial > hg > octave-nkf > gnulib-hg
changeset 4630:323dc2337076
Assume C89; don't check for stdlib.h, string.h, genenv, malloc.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 08 Sep 2003 22:52:05 +0000 |
parents | 9583f9cee522 |
children | 069117fb861f |
files | lib/addext.c lib/backupfile.c m4/backupfile.m4 |
diffstat | 3 files changed, 6 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/addext.c +++ b/lib/addext.c @@ -37,11 +37,7 @@ #endif #include <stddef.h> -#if HAVE_STRING_H -# include <string.h> -#else -# include <strings.h> -#endif +#include <string.h> #if HAVE_UNISTD_H # include <unistd.h>
--- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -27,11 +27,7 @@ #include <stddef.h> #include <stdio.h> -#if HAVE_STRING_H -# include <string.h> -#else -# include <strings.h> -#endif +#include <string.h> #if HAVE_DIRENT_H # include <dirent.h> @@ -57,23 +53,7 @@ # define CLOSEDIR(d) closedir (d) #endif -#if HAVE_STDLIB_H -# include <stdlib.h> -#endif - -#ifndef HAVE_DECL_GETENV -"this configure-time declaration test was not run" -#endif -#if !HAVE_DECL_GETENV -char *getenv (); -#endif - -#ifndef HAVE_DECL_MALLOC -"this configure-time declaration test was not run" -#endif -#if !HAVE_DECL_MALLOC -char *malloc (); -#endif +#include <stdlib.h> #if HAVE_DIRENT_H || HAVE_NDIR_H || HAVE_SYS_DIR_H || HAVE_SYS_NDIR_H # define HAVE_DIR 1
--- a/m4/backupfile.m4 +++ b/m4/backupfile.m4 @@ -1,4 +1,4 @@ -# backupfile.m4 serial 2 +# backupfile.m4 serial 3 dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -11,13 +11,11 @@ dnl Prerequisites of lib/backupfile.c. AC_REQUIRE([AC_HEADER_DIRENT]) AC_REQUIRE([AC_FUNC_CLOSEDIR_VOID]) - AC_CHECK_HEADERS_ONCE(stdlib.h string.h) - AC_CHECK_DECLS_ONCE(getenv malloc) jm_CHECK_TYPE_STRUCT_DIRENT_D_INO dnl Prerequisites of lib/addext.c. AC_REQUIRE([jm_AC_DOS]) - AC_SYS_LONG_FILE_NAMES - AC_CHECK_HEADERS_ONCE(string.h unistd.h) + AC_REQUIRE([AC_SYS_LONG_FILE_NAMES]) + AC_CHECK_HEADERS_ONCE(unistd.h) AC_CHECK_FUNCS(pathconf) ])