commit | 21569cddc1a9df3bf4a3c9e06977273f1eba3e63 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Jan 28 06:42:08 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Jan 28 06:42:08 2010 +0000 |
tree | ec0d3fe97d75d1eb383a69876b1b28e715c5863b | |
parent | 150dfa87113e51881c75676edd8e3549eb702d99 [diff] [blame] |
Add llvm::Program::ChangeStderrToBinary(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94743 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index a69826f..a3b40d0 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc
@@ -379,4 +379,9 @@ return result == -1; } +bool Program::ChangeStderrToBinary(){ + int result = _setmode( _fileno(stderr), _O_BINARY ); + return result == -1; +} + }