Remove K&R cruft.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Sep 2003 06:54:11 +0000 (06:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Sep 2003 06:54:11 +0000 (06:54 +0000)
lib/getdate.y
m4/getdate.m4

index c131dde13f7fcd6157214ba8219b7ebfa00c9604..40fd4e0fe4c969bb83237d380072216a6988a8ba 100644 (file)
@@ -43,9 +43,7 @@
 
 #include <ctype.h>
 
-#if HAVE_STDLIB_H
-# include <stdlib.h> /* for `free'; used by Bison 1.27 */
-#endif
+#include <stdlib.h> /* 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 <string.h>
-#endif
+#include <string.h>
 
 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
 # define __attribute__(x)
index e3c517b39b992c86082859a0b47b1c306559ea60..d17dd37fce6e44dc826bee470681101964f1bb9f 100644 (file)
@@ -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])