diff options
author | Ken Raeburn <raeburn@cygnus> | 1992-06-16 12:05:52 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1992-06-16 12:05:52 +0000 |
commit | 458c48278affd2d888dcd2abc2fe31e6a8f0d214 (patch) | |
tree | 4532b5855f402cda4fdd768dd58fcdde49afa4c0 /bfd/hosts/sparc.h | |
parent | ce07dd7c0cc9034fd9aac351d34a99b1452c0203 (diff) | |
download | gdb-458c48278affd2d888dcd2abc2fe31e6a8f0d214.zip gdb-458c48278affd2d888dcd2abc2fe31e6a8f0d214.tar.gz gdb-458c48278affd2d888dcd2abc2fe31e6a8f0d214.tar.bz2 |
* hosts/sparc.h (abort, exit): Hide these names if compiling with
gcc version 2, to avoid warnings.
Diffstat (limited to 'bfd/hosts/sparc.h')
-rw-r--r-- | bfd/hosts/sparc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/hosts/sparc.h b/bfd/hosts/sparc.h index e03a094..1239406 100644 --- a/bfd/hosts/sparc.h +++ b/bfd/hosts/sparc.h @@ -12,7 +12,13 @@ #define SEEK_SET 0 #define SEEK_CUR 1 #ifdef __STDC__ +#if __GNUC__ >= 2 +#define abort __hide_abort +#define exit __hide_exit +#endif #include <stdlib.h> +#undef exit +#undef abort #include <string.h> #else extern char *EXFUN(mktemp,(CONST char*)); |