diff options
author | Alan Modra <amodra@gmail.com> | 2008-08-25 04:38:13 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-08-25 04:38:13 +0000 |
commit | 4cef8a9f87d907d5d188b64178b8f875ca1b03fa (patch) | |
tree | f03675628fceb38d563f3e36a254a25403b8318d /binutils/strings.c | |
parent | 67efbf453f5411553b6d20fc76cb4c18f647e831 (diff) | |
download | gdb-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/strings.c')
-rw-r--r-- | binutils/strings.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/binutils/strings.c b/binutils/strings.c index 973045e..8a0f011 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; } |