From: nuffer Date: Thu, 13 May 2004 03:28:29 +0000 (+0000) Subject: Removed configure checks for standard C headers which will always be available. X-Git-Tag: 0.13.6~704 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5755d2d6c92efffcfb6933a86fd420d0f4594a9;p=re2c Removed configure checks for standard C headers which will always be available. --- diff --git a/configure.in b/configure.in index 182a07f8..1ea6fbd8 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,10 @@ AC_PROG_INSTALL # Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([fcntl.h malloc.h stddef.h stdlib.h string.h strings.h unistd.h memory.h]) + +# We only rely on standard C/C++ headers. If we ever have a pressing need +# for something non-standard, we should add a check for it here. +# AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL diff --git a/parser.y b/parser.y index 9ecf0039..5d4b5ffe 100644 --- a/parser.y +++ b/parser.y @@ -6,29 +6,10 @@ #include "config.h" #endif -#ifdef HAVE_TIME_H #include -#endif - -#ifdef HAVE_STRING_H #include -#endif - -#ifdef HAVE_STRINGS_H -#include -#endif - -#ifdef HAVE_MALLOC_H -#include -#endif - -#ifdef HAVE_MEMORY_H -#include -#endif - -#ifdef HAVE_STDLIB_H #include -#endif +#include #include "globals.h" #include "parser.h"