Fixed variable/function name clash building on Windows

This commit is contained in:
Sid Price 2020-05-02 15:23:15 -06:00 committed by UweBonnes
parent 9f8c7be360
commit 923949d5dd
1 changed files with 23 additions and 23 deletions

View File

@ -1259,29 +1259,29 @@ static int cortexm_hostio_request(target *t)
} }
case SYS_ISERROR: { /* iserror */ case SYS_ISERROR: { /* iserror */
int errno = params[0]; int errorNo = params[0];
ret = (errno == TARGET_EPERM) || ret = (errorNo == TARGET_EPERM) ||
(errno == TARGET_ENOENT) || (errorNo == TARGET_ENOENT) ||
(errno == TARGET_EINTR) || (errorNo == TARGET_EINTR) ||
(errno == TARGET_EIO) || (errorNo == TARGET_EIO) ||
(errno == TARGET_EBADF) || (errorNo == TARGET_EBADF) ||
(errno == TARGET_EACCES) || (errorNo == TARGET_EACCES) ||
(errno == TARGET_EFAULT) || (errorNo == TARGET_EFAULT) ||
(errno == TARGET_EBUSY) || (errorNo == TARGET_EBUSY) ||
(errno == TARGET_EEXIST) || (errorNo == TARGET_EEXIST) ||
(errno == TARGET_ENODEV) || (errorNo == TARGET_ENODEV) ||
(errno == TARGET_ENOTDIR) || (errorNo == TARGET_ENOTDIR) ||
(errno == TARGET_EISDIR) || (errorNo == TARGET_EISDIR) ||
(errno == TARGET_EINVAL) || (errorNo == TARGET_EINVAL) ||
(errno == TARGET_ENFILE) || (errorNo == TARGET_ENFILE) ||
(errno == TARGET_EMFILE) || (errorNo == TARGET_EMFILE) ||
(errno == TARGET_EFBIG) || (errorNo == TARGET_EFBIG) ||
(errno == TARGET_ENOSPC) || (errorNo == TARGET_ENOSPC) ||
(errno == TARGET_ESPIPE) || (errorNo == TARGET_ESPIPE) ||
(errno == TARGET_EROFS) || (errorNo == TARGET_EROFS) ||
(errno == TARGET_ENOSYS) || (errorNo == TARGET_ENOSYS) ||
(errno == TARGET_ENAMETOOLONG) || (errorNo == TARGET_ENAMETOOLONG) ||
(errno == TARGET_EUNKNOWN); (errorNo == TARGET_EUNKNOWN);
break; break;
} }