summaryrefslogtreecommitdiff
path: root/binutils/strings.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-08-25 04:38:13 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-08-25 04:38:13 +0000
commit7040f7e218b9293e99bd3aab34375d48af83e3ac (patch)
treeb6bb5866f48cc0f5a7514ba2bdd916f9f36307a4 /binutils/strings.c
parent82bfdc9c0249e48935057396466aa8a1f52b51f8 (diff)
downloadbinutils-redhat-7040f7e218b9293e99bd3aab34375d48af83e3ac.tar.gz
* 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/strings.c')
-rw-r--r--binutils/strings.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/binutils/strings.c b/binutils/strings.c
index 973045e17c..8a0f01192c 100644
--- a/binutils/strings.c
+++ b/binutils/strings.c
@@ -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;
}