diff options
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 20 |
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__ */ |