* 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

@@ -66,18 +66,6 @@
#include <sys/stat.h>
#include "bucomm.h"
/* Some platforms need to put stdin into binary mode, to read
binary files. */
#ifdef HAVE_SETMODE
#ifdef _O_BINARY
#define setmode _setmode
#endif
#if O_BINARY
#include <io.h>
#define SET_BINARY(f) do { if (!isatty (f)) setmode (f, O_BINARY); } while (0)
#endif
#endif
#define STRING_ISGRAPHIC(c) \
( (c) >= 0 \
&& (c) <= 255 \
@@ -286,9 +274,7 @@ main (int argc, char **argv)
if (optind >= argc)
{
datasection_only = FALSE;
#ifdef SET_BINARY
SET_BINARY (fileno (stdin));
#endif
print_strings ("{standard input}", stdin, 0, 0, 0, (char *) NULL);
files_given = TRUE;
}