fix RIA.errno macro conflict

This commit is contained in:
rumbledethumps
2025-05-23 19:25:46 -07:00
parent 5854818754
commit 096095840f
2 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ struct __RP6502
unsigned char step1;
unsigned int addr1;
unsigned char xstack;
unsigned int errno;
unsigned int errno_;
unsigned char op;
unsigned char irq;
const unsigned char spin;

View File

@@ -7,8 +7,8 @@ int __cdecl__ open (const char* name, int flags, ...)
{
size_t namelen = strlen (name);
if (namelen > 255) {
RIA.errno = EINVAL;
return _mappederrno(RIA.errno);
RIA.errno_ = EINVAL;
return _mappederrno (RIA.errno_);
}
while (namelen) {
ria_push_char (name[--namelen]);