From 417ed8af836c10ff5c0cbcdc4c011f5024a7269b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 28 Apr 2008 08:30:23 +0000 Subject: PR binutils/6449 * objdump.c (slurp_file): Open the file in binary mode. * ar.c: Remove conditional definition of O_BINARY. * bin2.c: Likewise. * rename.c: Likewise. * strings.c: Likewise. * sysdep.h: Add conditional definition of O_BINARY. --- binutils/strings.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'binutils/strings.c') diff --git a/binutils/strings.c b/binutils/strings.c index 40b53b8..973045e 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -69,17 +69,12 @@ /* Some platforms need to put stdin into binary mode, to read binary files. */ #ifdef HAVE_SETMODE -#ifndef O_BINARY #ifdef _O_BINARY -#define O_BINARY _O_BINARY #define setmode _setmode -#else -#define O_BINARY 0 -#endif #endif #if O_BINARY #include -#define SET_BINARY(f) do { if (!isatty (f)) setmode (f,O_BINARY); } while (0) +#define SET_BINARY(f) do { if (!isatty (f)) setmode (f, O_BINARY); } while (0) #endif #endif -- cgit v1.1