aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2011-03-07 14:08:27 -0800
committerStephen Hines <srhines@google.com>2011-03-07 14:08:27 -0800
commita5952286b33337a1d44959227f8ce85d1f8164d2 (patch)
tree38dca873105431580485389734084b89a489ac67
parent8306ab0d838d3e4a2e2687697391182b2a7dfa2e (diff)
downloadexternal_llvm-a5952286b33337a1d44959227f8ce85d1f8164d2.tar.gz
external_llvm-a5952286b33337a1d44959227f8ce85d1f8164d2.tar.bz2
external_llvm-a5952286b33337a1d44959227f8ce85d1f8164d2.zip
Revert "Fix the build"
This reverts commit 8306ab0d838d3e4a2e2687697391182b2a7dfa2e. This is no longer necessary, since O_BINARY is now undefined for non-Windows platforms.
-rw-r--r--lib/Support/raw_ostream.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index 5172edf747..dceccad161 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/lib/Support/raw_ostream.cpp
@@ -418,14 +418,12 @@ raw_fd_ostream::raw_fd_ostream(const char *Filename, std::string &ErrorInfo,
raw_fd_ostream::raw_fd_ostream(int fd, bool shouldClose, bool unbuffered)
: raw_ostream(unbuffered), FD(fd),
ShouldClose(shouldClose), Error(false) {
-#ifdef LLVM_ON_WIN32
#ifdef O_BINARY
// Setting STDOUT and STDERR to binary mode is necessary in Win32
// to avoid undesirable linefeed conversion.
if (fd == STDOUT_FILENO || fd == STDERR_FILENO)
setmode(fd, O_BINARY);
#endif
-#endif
}
raw_fd_ostream::~raw_fd_ostream() {