llvm.org GIT mirror llvm / e7b43ec
Fix windows build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209961 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
2 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
425425 int result = _setmode( _fileno(stdin), _O_BINARY );
426426 if (result == -1)
427427 return error_code(errno, generic_category());
428 return make_error_code(errc::success);
428 return error_code();
429429 }
430430
431431 error_code sys::ChangeStdoutToBinary(){
432432 int result = _setmode( _fileno(stdout), _O_BINARY );
433433 if (result == -1)
434434 return error_code(errno, generic_category());
435 return make_error_code(errc::success);
435 return error_code();
436436 }
437437
438438 bool llvm::sys::argumentsFitWithinSystemLimits(ArrayRef Args) {
5656 error_condition
5757 _system_error_category::default_error_condition(int ev) const {
5858 switch (ev) {
59 MAP_ERR_TO_COND(0, success);
6059 // Windows system -> posix_errno decode table ---------------------------//
6160 // see WinError.h comments for descriptions of errors
6261 MAP_ERR_TO_COND(ERROR_ACCESS_DENIED, permission_denied);