aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-09-29 02:14:51 +0000
committerStan Shebs <shebs@codesourcery.com>1995-09-29 02:14:51 +0000
commit698e0075ef292e847b24274688ec947af32b64be (patch)
tree9d40576c2cf842a6f3ff80ee8f8f3e23ac82d4d0 /bfd/hosts
parent0e4ca328e1d046bc478f61273b1cb3a86d5c592e (diff)
downloadgdb-698e0075ef292e847b24274688ec947af32b64be.zip
gdb-698e0075ef292e847b24274688ec947af32b64be.tar.gz
gdb-698e0075ef292e847b24274688ec947af32b64be.tar.bz2
* config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
* configure, configure.in: Add pmac_xcoff_vec case. * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o. * coff-pmac.c: New file, PowerMac XCOFF support. * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case. * targets.c (pmac_xcoff_vec): Declare. * mpw-config.in: Various changes to be compatible with the autoconf-based configury. * mpw-make.sed: New file, sed commands to translate Unix makefile into MPW syntax. * mpw-make.in: Remove. * hosts/mpw.h: Remove. * bfd-in.h, bfd-in2.h: If MPW, include the file that defines true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/mpw.h90
1 files changed, 0 insertions, 90 deletions
diff --git a/bfd/hosts/mpw.h b/bfd/hosts/mpw.h
deleted file mode 100644
index 9c8ebf6..0000000
--- a/bfd/hosts/mpw.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Mac MPW host-specific definitions. */
-
-#ifndef hosts_mpw_H
-#define hosts_mpw_H
-
-#ifndef MPW
-#define MPW
-#endif
-
-/* MPW C is basically ANSI, but doesn't actually enable __STDC__,
- nor does it allow __STDC__ to be #defined. */
-
-#ifndef ALMOST_STDC
-#define ALMOST_STDC
-#endif
-
-/* This bit of ugliness works around the stupid and useless definitions
- of true and false in BFD header files. */
-
-#ifdef BFD_TRUE_FALSE
-#ifndef false
-#define false mpw_false
-#endif
-#ifndef true
-#define true mpw_true
-#endif
-#endif
-
-#include <stdlib.h>
-#include <errno.h>
-#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-#include <fcntl.h>
-
-#include <sys/stat.h>
-
-#ifndef O_ACCMODE
-#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
-#endif
-
-/* Binary files have different characteristics; for instance, no cr/nl
- translation. */
-
-#include "fopen-bin.h"
-
-#include <stddef.h>
-
-#include <spin.h>
-
-#ifdef MPW_C
-
-#undef __PTR_TO_INT
-#define __PTR_TO_INT(P) ((int)(P))
-#undef __INT_TO_PTR
-#define __INT_TO_PTR(P) ((char *)(P))
-
-#endif
-
-#define NO_FCNTL
-
-int fstat ();
-
-FILE *mpw_fopen ();
-int mpw_fseek ();
-int mpw_fread ();
-int mpw_fwrite ();
-void mpw_abort ();
-
-/* Map these standard functions to improved versions in libiberty. */
-
-#define fopen mpw_fopen
-#define fseek mpw_fseek
-#define fread mpw_fread
-#define fwrite mpw_fwrite
-#define abort mpw_abort
-
-#ifndef TRUE_FALSE_ALREADY_DEFINED
-#define TRUE_FALSE_ALREADY_DEFINED
-#endif
-
-#define POSIX_UTIME
-
-#define LOSING_TOTALLY
-
-/* Define this so that files will be closed before being unlinked. */
-
-#define CLOSE_BEFORE_UNLINK
-
-#endif /* hosts_mpw_H */