mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Fix windows build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209961 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c145fd3cf5
commit
e7b43ecdcd
@ -426,14 +426,14 @@ 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);
|
||||
return error_code();
|
||||
}
|
||||
|
||||
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);
|
||||
return error_code();
|
||||
}
|
||||
|
||||
bool llvm::sys::argumentsFitWithinSystemLimits(ArrayRef<const char*> Args) {
|
||||
|
@ -57,7 +57,6 @@ _system_error_category::message(int ev) const {
|
||||
error_condition
|
||||
_system_error_category::default_error_condition(int ev) const {
|
||||
switch (ev) {
|
||||
MAP_ERR_TO_COND(0, success);
|
||||
// Windows system -> posix_errno decode table ---------------------------//
|
||||
// see WinError.h comments for descriptions of errors
|
||||
MAP_ERR_TO_COND(ERROR_ACCESS_DENIED, permission_denied);
|
||||
|
Loading…
x
Reference in New Issue
Block a user