summaryrefslogtreecommitdiff
path: root/binutils/bin2c.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-04-28 08:30:23 +0000
committerNick Clifton <nickc@redhat.com>2008-04-28 08:30:23 +0000
commitc3372e5344a641ba9409547d11e3e8651f0e8eeb (patch)
tree0a1dc7fd1f13c97d38ed1f24be2e4341965ee358 /binutils/bin2c.c
parent9dda65711aaffead78e9d68a9f7893152b375a67 (diff)
downloadbinutils-redhat-c3372e5344a641ba9409547d11e3e8651f0e8eeb.tar.gz
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.
Diffstat (limited to 'binutils/bin2c.c')
-rw-r--r--binutils/bin2c.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/binutils/bin2c.c b/binutils/bin2c.c
index 0eeff350aa..b3138e1f74 100644
--- a/binutils/bin2c.c
+++ b/binutils/bin2c.c
@@ -1,5 +1,5 @@
/* bin2c.c -- dump binary file in hex format
- Copyright 2007 Free Software Foundation, Inc.
+ Copyright 2007, 2008 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -22,9 +22,8 @@
#include "bfd.h"
#include "bucomm.h"
-#if !defined O_BINARY && defined _O_BINARY
+#if !defined O_TEXT && defined _O_TEXT
/* For MSC-compatible compilers. */
-# define O_BINARY _O_BINARY
# define O_TEXT _O_TEXT
#endif