From ceb979c756aa8ee2e0fd69864199f6ff0a179fed Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 9 Sep 2003 06:54:11 +0000 Subject: [PATCH] Remove K&R cruft. --- lib/getdate.y | 8 ++------ m4/getdate.m4 | 5 ++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/getdate.y b/lib/getdate.y index c131dde13f..40fd4e0fe4 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -43,9 +43,7 @@ #include -#if HAVE_STDLIB_H -# include /* for `free'; used by Bison 1.27 */ -#endif +#include /* for `free'; used by Bison 1.27 */ #if STDC_HEADERS || (! defined isascii && ! HAVE_ISASCII) # define IN_CTYPE_DOMAIN(c) 1 @@ -67,9 +65,7 @@ of `digit' even when the host does not conform to POSIX. */ #define ISDIGIT(c) ((unsigned) (c) - '0' <= 9) -#if STDC_HEADERS || HAVE_STRING_H -# include -#endif +#include #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ # define __attribute__(x) diff --git a/m4/getdate.m4 b/m4/getdate.m4 index e3c517b39b..d17dd37fce 100644 --- a/m4/getdate.m4 +++ b/m4/getdate.m4 @@ -1,5 +1,5 @@ -# getdate.m4 serial 1 -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# getdate.m4 serial 2 +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 dnl Public License, this file may be distributed as part of a program @@ -16,7 +16,6 @@ AC_DEFUN([gl_GETDATE], AC_REQUIRE([jm_BISON]) AC_REQUIRE([AC_FUNC_ALLOCA]) AC_REQUIRE([AC_HEADER_STDC]) - AC_CHECK_HEADERS_ONCE(stdlib.h string.h) AC_CHECK_FUNCS_ONCE(isascii) AC_STRUCT_TIMEZONE AC_REQUIRE([gl_TM_GMTOFF]) -- 2.30.2