aboutsummaryrefslogtreecommitdiff
path: root/binutils/bin2c.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-08-25 04:38:13 +0000
committerAlan Modra <amodra@gmail.com>2008-08-25 04:38:13 +0000
commit4cef8a9f87d907d5d188b64178b8f875ca1b03fa (patch)
treef03675628fceb38d563f3e36a254a25403b8318d /binutils/bin2c.c
parent67efbf453f5411553b6d20fc76cb4c18f647e831 (diff)
downloadgdb-4cef8a9f87d907d5d188b64178b8f875ca1b03fa.zip
gdb-4cef8a9f87d907d5d188b64178b8f875ca1b03fa.tar.gz
gdb-4cef8a9f87d907d5d188b64178b8f875ca1b03fa.tar.bz2
* sysdep.h: Include "binary-io.h".
(O_BINARY): Don't define here. * bin2c.c (O_BINARY, O_TEXT, SET_BINARY): Don't define here. * strings.c: Likewise. (main): Remove #ifdef SET_BINARY. * Makefile.am: Run "make dep-am" * Makefile.in: Regenerate.
Diffstat (limited to 'binutils/bin2c.c')
-rw-r--r--binutils/bin2c.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/binutils/bin2c.c b/binutils/bin2c.c
index b3138e1..a1f0ef5 100644
--- a/binutils/bin2c.c
+++ b/binutils/bin2c.c
@@ -22,30 +22,6 @@
#include "bfd.h"
#include "bucomm.h"
-#if !defined O_TEXT && defined _O_TEXT
- /* For MSC-compatible compilers. */
-# define O_TEXT _O_TEXT
-#endif
-
-#ifdef __BEOS__
- /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
-# undef O_BINARY
-# undef O_TEXT
-#endif
-
-#if O_BINARY
-# ifndef __DJGPP__
-# define setmode _setmode
-# define fileno(_fp) _fileno (_fp)
-# endif /* not DJGPP */
-# define SET_BINARY(_f) \
- do { if (!isatty (_f)) setmode (_f, O_BINARY); } while (0)
-#else
-# define SET_BINARY(f) (void) 0
-# define O_BINARY 0
-# define O_TEXT 0
-#endif /* O_BINARY */
-
int
main (int argc, char *argv[])
{