aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-03-04 00:47:01 +0000
committerStan Shebs <shebs@codesourcery.com>1995-03-04 00:47:01 +0000
commitab62d0499e0aae8236683eb37999d5f03c98edc9 (patch)
tree0c40d6d97ab7b498266a75a93425eb2fb13e20dc /bfd
parentcb7973c33e3ca9e1ec3b83d7ff1abca2066e3a18 (diff)
downloadgdb-ab62d0499e0aae8236683eb37999d5f03c98edc9.zip
gdb-ab62d0499e0aae8236683eb37999d5f03c98edc9.tar.gz
gdb-ab62d0499e0aae8236683eb37999d5f03c98edc9.tar.bz2
* hosts/mpw.h (SEEK_SET, SEEK_CUR, BYTES_IN_PRINTF_INT):
Remove definitions. (mpw_fread, mpw_fwrite): Declare, define as substitutes for fread and fwrite.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog.mpw7
-rw-r--r--bfd/hosts/mpw.h19
2 files changed, 15 insertions, 11 deletions
diff --git a/bfd/ChangeLog.mpw b/bfd/ChangeLog.mpw
index c03eeed..0797b46 100644
--- a/bfd/ChangeLog.mpw
+++ b/bfd/ChangeLog.mpw
@@ -1,3 +1,10 @@
+Fri Mar 3 16:43:39 1995 Stan Shebs <shebs@andros.cygnus.com>
+
+ * hosts/mpw.h (SEEK_SET, SEEK_CUR, BYTES_IN_PRINTF_INT):
+ Remove definitions.
+ (mpw_fread, mpw_fwrite): Declare, define as substitutes
+ for fread and fwrite.
+
Tue Jan 3 12:13:39 1995 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.in (DebugOptions): Remove define of DEBUG_BFD_SEND.
diff --git a/bfd/hosts/mpw.h b/bfd/hosts/mpw.h
index b78338a..9c8ebf6 100644
--- a/bfd/hosts/mpw.h
+++ b/bfd/hosts/mpw.h
@@ -1,4 +1,4 @@
-/* MPW host-specific definitions. */
+/* Mac MPW host-specific definitions. */
#ifndef hosts_mpw_H
#define hosts_mpw_H
@@ -14,6 +14,9 @@
#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
@@ -35,16 +38,6 @@
#ifndef O_ACCMODE
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
#endif
-#ifndef SEEK_SET
-#define SEEK_SET 0
-#endif
-#ifndef SEEK_CUR
-#define SEEK_CUR 1
-#endif
-
-#ifndef BYTES_IN_PRINTF_INT
-#define BYTES_IN_PRINTF_INT 4
-#endif
/* Binary files have different characteristics; for instance, no cr/nl
translation. */
@@ -70,12 +63,16 @@ 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