]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gprof/gmon_io.h
Imported binutils-2.20
[msp430-binutils.git] / gprof / gmon_io.h
index 20e59b56120009262c739bae15f4c60483ff294a..29d608d08a3c4d926c6a34a728e3b5eaf776b1a3 100644 (file)
@@ -1,6 +1,7 @@
 /* gmon_io.h
 
-   Copyright 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc.
+   Copyright 2000, 2001, 2002, 2004, 2007, 2008
+   Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
 #ifndef gmon_io_h
 #define gmon_io_h
 
-/* Some platforms need to put stdin into binary mode, to read
-   binary files.  */
-#include "sysdep.h"
-#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 <io.h>
-#define SET_BINARY(f) do { if (!isatty(f)) setmode(f,O_BINARY); } while (0)
-#endif
-#endif
-
 #define INPUT_HISTOGRAM                (1 << 0)
 #define INPUT_CALL_GRAPH       (1 << 1)
 #define INPUT_BB_COUNTS                (1 << 2)