* 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.
This commit is contained in:
Alan Modra 2008-08-25 04:38:13 +00:00
parent 67efbf453f
commit 4cef8a9f87
6 changed files with 216 additions and 255 deletions

View file

@ -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[])
{