X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=binutils%2Fbin2c.c;h=a1f0ef51d4407aa3c19d4cf160f80e36f023e896;hp=0eeff350aadf7eb5f718f49600075e5db7472501;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/binutils/bin2c.c b/binutils/bin2c.c index 0eeff35..a1f0ef5 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,31 +22,6 @@ #include "bfd.h" #include "bucomm.h" -#if !defined O_BINARY && defined _O_BINARY - /* For MSC-compatible compilers. */ -# define O_BINARY _O_BINARY -# define O_TEXT _O_TEXT -#endif - -#ifdef __BEOS__ - /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ -# undef O_BINARY -# undef O_TEXT -#endif - -#if O_BINARY -# ifndef __DJGPP__ -# define setmode _setmode -# define fileno(_fp) _fileno (_fp) -# endif /* not DJGPP */ -# define SET_BINARY(_f) \ - do { if (!isatty (_f)) setmode (_f, O_BINARY); } while (0) -#else -# define SET_BINARY(f) (void) 0 -# define O_BINARY 0 -# define O_TEXT 0 -#endif /* O_BINARY */ - int main (int argc, char *argv[]) {