aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/m68k
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-10-19 19:29:52 +0000
committerStan Shebs <shebs@codesourcery.com>1995-10-19 19:29:52 +0000
commita6922ef00319229ff147cbfe7861a0870f56c254 (patch)
tree4155460baa3981a7c7ee4fe5549a2489462c4dae /gdb/config/m68k
parent0d0c3cc58a4adcbd9cbbda03efb7c7519b1ce070 (diff)
downloadgdb-a6922ef00319229ff147cbfe7861a0870f56c254.zip
gdb-a6922ef00319229ff147cbfe7861a0870f56c254.tar.gz
gdb-a6922ef00319229ff147cbfe7861a0870f56c254.tar.bz2
* mpw-config.in: Adapt to work with autoconf'ed configury;
build config.h, add empty definitions to mk.tmp. (powerpc-apple-macos): Make it work. * mpw-make.sed: New file, sed commands to translate Unix makefile into MPW syntax. * mpw-make.in: Remove. * mac-gdb.r: New file, was macgdb.r, renamed for consistency with other tools, now includes cfrg resource. * macgdb.r: Remove. * config/m68k/xm-mpw.h: Remove most of contents, replace with include of include/mpw/mpw.h.
Diffstat (limited to 'gdb/config/m68k')
-rw-r--r--gdb/config/m68k/xm-mpw.h59
1 files changed, 2 insertions, 57 deletions
diff --git a/gdb/config/m68k/xm-mpw.h b/gdb/config/m68k/xm-mpw.h
index b8b555b..71a311a 100644
--- a/gdb/config/m68k/xm-mpw.h
+++ b/gdb/config/m68k/xm-mpw.h
@@ -19,54 +19,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "m68k/xm-m68k.h"
+#include "mpw.h"
+
#include "fopen-bin.h"
#include "spin.h"
#define CANT_FORK
-#ifdef MPW_C
-
-/* 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
-
-#endif /* MPW_C */
-
-#ifdef BFD_TRUE_FALSE
-#ifndef false
-#define false mpw_false
-#endif
-#ifndef true
-#define true mpw_true
-#endif
-#endif
-
-#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
-
-#include <stdio.h>
-
-FILE *mpw_fopen ();
-int mpw_fseek ();
-void mpw_abort ();
-
-/* Map these standard functions to improved versions in libiberty. */
-
-#define fopen mpw_fopen
-#define open mpw_open
-#define fseek mpw_fseek
-#define abort mpw_abort
-
/* Map these standard functions to versions that can do I/O in a console
window. */
@@ -81,21 +41,6 @@ void mpw_abort ();
#define fgetc hacked_fgetc
-/* Define as macros so as to mask the previous enum. */
-
-#ifndef BFD_TRUE_FALSE
-#ifndef false
-#define false ffalse
-#endif
-#ifndef true
-#define true ttrue
-#endif
-#endif
-
-#ifndef TRUE_FALSE_ALREADY_DEFINED
-#define TRUE_FALSE_ALREADY_DEFINED
-#endif
-
#define POSIX_UTIME
/* No declaration of strdup in MPW's string.h, oddly enough. */