aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Windows/Program.inc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-12 21:25:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-12 21:25:04 +0000
commita03a80f3ce75daca98445d568930771113ce06ef (patch)
treea5e3767a1aa3ee536913132ab81c3a19f63ce964 /lib/Support/Windows/Program.inc
parente4f7e3109e1caf310f3afd10c9dd75348606c108 (diff)
downloadexternal_llvm-a03a80f3ce75daca98445d568930771113ce06ef.zip
external_llvm-a03a80f3ce75daca98445d568930771113ce06ef.tar.gz
external_llvm-a03a80f3ce75daca98445d568930771113ce06ef.tar.bz2
[Win] Put ChangeStdinToBinary ChangeStdoutToBinary ChangeStderrToBinary in sys.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Program.inc')
-rw-r--r--lib/Support/Windows/Program.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc
index cdc3373..0e8bbc8 100644
--- a/lib/Support/Windows/Program.inc
+++ b/lib/Support/Windows/Program.inc
@@ -421,21 +421,21 @@ static int Wait(void *&Data, const Path &path,
}
namespace llvm {
-error_code ChangeStdinToBinary(){
+error_code sys::ChangeStdinToBinary(){
int result = _setmode( _fileno(stdin), _O_BINARY );
if (result == -1)
return error_code(errno, generic_category());
return make_error_code(errc::success);
}
-error_code ChangeStdoutToBinary(){
+error_code sys::ChangeStdoutToBinary(){
int result = _setmode( _fileno(stdout), _O_BINARY );
if (result == -1)
return error_code(errno, generic_category());
return make_error_code(errc::success);
}
-error_code ChangeStderrToBinary(){
+error_code sys::ChangeStderrToBinary(){
int result = _setmode( _fileno(stderr), _O_BINARY );
if (result == -1)
return error_code(errno, generic_category());