mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 21:57:55 +00:00
clang-format of ChangeStdinToBinary & ChangeStdoutToBinary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7118c73867
commit
a51dbbd394
@ -428,15 +428,15 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait,
|
||||
return WaitResult;
|
||||
}
|
||||
|
||||
std::error_code sys::ChangeStdinToBinary(){
|
||||
int result = _setmode( _fileno(stdin), _O_BINARY );
|
||||
std::error_code sys::ChangeStdinToBinary() {
|
||||
int result = _setmode(_fileno(stdin), _O_BINARY);
|
||||
if (result == -1)
|
||||
return std::error_code(errno, std::generic_category());
|
||||
return std::error_code();
|
||||
}
|
||||
|
||||
std::error_code sys::ChangeStdoutToBinary(){
|
||||
int result = _setmode( _fileno(stdout), _O_BINARY );
|
||||
std::error_code sys::ChangeStdoutToBinary() {
|
||||
int result = _setmode(_fileno(stdout), _O_BINARY);
|
||||
if (result == -1)
|
||||
return std::error_code(errno, std::generic_category());
|
||||
return std::error_code();
|
||||
|
Loading…
Reference in New Issue
Block a user