aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-03-30 12:05:54 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-03-30 12:05:54 +0000
commitb04cd50711e40415a169d0f157e4ab15c5344384 (patch)
tree89dd65e70bf50b33a26d779913cd79c789b77b0b /gcc/cpplib.c
parent1aa5d112c8397e861eea2cbfba02c7e8f1ffae97 (diff)
downloadgcc-b04cd50711e40415a169d0f157e4ab15c5344384.zip
gcc-b04cd50711e40415a169d0f157e4ab15c5344384.tar.gz
gcc-b04cd50711e40415a169d0f157e4ab15c5344384.tar.bz2
More cutover to system.h:
* Makefile.in (cppalloc.o, cpperror.o, cppexp.o, cpphash.o, cpplib.o, cppmain.o, fix-header.o, gcov.o, gen-protos.o, gengenrtl.o, halfpic.o, hash.o, scan-decls.o, scan.o): Depend on system.h. * cpphash.c: Include config.h. * cppalloc.c: Include system.h. Add parameters to various function prototypes. * cpperror.c: Likewise. * cppexp.c: Likewise. * cpphash.c: Likewise. * cpplib.c: Likewise. * cppmain.c: Likewise. * fix-header.c: Likewise. * gcov.c: Likewise. * gen-protos.c: Likewise. * gengenrtl.c: Likewise. * halfpic.c: Likewise. * hash.c: Likewise. * scan-decls.c: Likewise. * scan.c: Likewise. From-SVN: r18911
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c53
1 files changed, 1 insertions, 52 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 72ae82c..88c2e85 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -19,30 +19,14 @@ along with this program; if not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "config.h"
+#include "system.h"
#ifndef STDC_VALUE
#define STDC_VALUE 1
#endif
-#include <ctype.h>
-#include <stdio.h>
#include <signal.h>
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-#endif
-#endif
-
#ifdef HAVE_SYS_TIMES_H
#include <sys/times.h>
#endif
@@ -51,45 +35,10 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
# include <sys/resource.h>
#endif
-#ifdef HAVE_FCNTL_H
-# include <fcntl.h>
-#endif
-
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#ifdef HAVE_STRING_H
-# include <string.h>
-# else
-# ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#endif
-
-/* This defines "errno" properly for VMS, and gives us EACCES. */
-#include <errno.h>
-
#include "cpplib.h"
#include "cpphash.h"
#include "gansidecl.h"
-#ifdef NEED_DECLARATION_INDEX
-extern char *index ();
-#endif
-
-#ifdef NEED_DECLARATION_RINDEX
-extern char *rindex ();
-#endif
-
-#ifdef NEED_DECLARATION_GETENV
-extern char *getenv ();
-#endif
-
extern char *update_path ();
#ifndef O_RDONLY