diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-28 06:42:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-28 06:42:08 +0000 |
commit | 21569cddc1a9df3bf4a3c9e06977273f1eba3e63 (patch) | |
tree | ec0d3fe97d75d1eb383a69876b1b28e715c5863b /lib/System/Win32/Program.inc | |
parent | 150dfa87113e51881c75676edd8e3549eb702d99 (diff) | |
download | external_llvm-21569cddc1a9df3bf4a3c9e06977273f1eba3e63.tar.gz external_llvm-21569cddc1a9df3bf4a3c9e06977273f1eba3e63.tar.bz2 external_llvm-21569cddc1a9df3bf4a3c9e06977273f1eba3e63.zip |
Add llvm::Program::ChangeStderrToBinary().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Win32/Program.inc')
-rw-r--r-- | lib/System/Win32/Program.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index a69826fdce..a3b40d0e36 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc @@ -379,4 +379,9 @@ bool Program::ChangeStdoutToBinary(){ return result == -1; } +bool Program::ChangeStderrToBinary(){ + int result = _setmode( _fileno(stderr), _O_BINARY ); + return result == -1; +} + } |