From 4cef8a9f87d907d5d188b64178b8f875ca1b03fa Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 25 Aug 2008 04:38:13 +0000 Subject: * 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. --- binutils/bin2c.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'binutils/bin2c.c') 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[]) { -- cgit v1.1