summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-05-06 08:36:04 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-05-06 08:36:04 +0000
commit8f81384fec6ccb2bca5a9029498c7b1c0d0326ff (patch)
tree107719458711c10e22bb9c763a520f5ad135fb9a /gcc/system.h
parente572c0c68c9d1a48595039af480e18e7d4bdb292 (diff)
downloadgcc-8f81384fec6ccb2bca5a9029498c7b1c0d0326ff.tar.gz
The isascii check is needed by system.h.
* configure.in (AC_CHECK_FUNCS): Add isascii. (GCC_NEED_DECLARATIONS): Add atof. * system.h: Provide prototypes for abort, atof, atol and sbrk here. * rtl.c, rtl.h, toplev.c, tree.h: Not here. From-SVN: r19572
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 468db6a667a..a3ff5bd3058 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -190,6 +190,14 @@ extern char *rindex ();
# endif
#endif
+#ifdef NEED_DECLARATION_ATOF
+extern double atof ();
+#endif
+
+#ifdef NEED_DECLARATION_ATOL
+extern long atol();
+#endif
+
#ifdef NEED_DECLARATION_FREE
extern void free ();
#endif
@@ -198,6 +206,10 @@ extern void free ();
extern char *getenv ();
#endif
+#ifdef NEED_DECLARATION_SBRK
+extern char *sbrk ();
+#endif
+
/* Redefine abort to report an internal error w/o coredump, and reporting the
location of the error in the source file. */
#ifndef abort
@@ -209,7 +221,11 @@ extern char *getenv ();
#endif /* !__GNUC__ */
#endif /* !__STDC__ */
-#ifndef USE_SYSTEM_ABORT
+#ifdef USE_SYSTEM_ABORT
+# ifdef NEED_DECLARATION_ABORT
+void abort ();
+# endif
+#else
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
#define abort() \
(fprintf (stderr, \
@@ -224,7 +240,7 @@ extern char *getenv ();
exit (FATAL_EXIT_CODE))
#endif /* recent gcc */
-#endif /* !USE_SYSTEM_ABORT */
+#endif /* USE_SYSTEM_ABORT */
#endif /* !abort */
#endif /* __GCC_SYSTEM_H__ */