]> granicus.if.org Git - re2c/commitdiff
Removed configure checks for standard C headers which will always be available.
authornuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 13 May 2004 03:28:29 +0000 (03:28 +0000)
committernuffer <nuffer@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 13 May 2004 03:28:29 +0000 (03:28 +0000)
configure.in
parser.y

index 182a07f89d0561f3b24d612b0562c37bf871ed43..1ea6fbd8826fcbfc3620df5b82ac15d58ef8b4f6 100644 (file)
@@ -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
index 9ecf003930e3944199ca107108a0e0a530dcd769..5d4b5ffea8aa3039090c50f1b2511a52baa98e54 100644 (file)
--- a/parser.y
+++ b/parser.y
@@ -6,29 +6,10 @@
 #include "config.h"
 #endif
 
-#ifdef HAVE_TIME_H
 #include <time.h>
-#endif
-
-#ifdef HAVE_STRING_H
 #include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-
-#ifdef HAVE_MEMORY_H
-#include <memory.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
+#include <iostream>
 
 #include "globals.h"
 #include "parser.h"