From 096095840f7583d0facc8beed830839e3d7fbfea Mon Sep 17 00:00:00 2001 From: rumbledethumps <16963588+rumbledethumps@users.noreply.github.com> Date: Fri, 23 May 2025 19:25:46 -0700 Subject: [PATCH] fix RIA.errno macro conflict --- include/rp6502.h | 2 +- libsrc/rp6502/open.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rp6502.h b/include/rp6502.h index 7deeebc4c..33e983de3 100644 --- a/include/rp6502.h +++ b/include/rp6502.h @@ -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; diff --git a/libsrc/rp6502/open.c b/libsrc/rp6502/open.c index 2061c9813..187c57625 100644 --- a/libsrc/rp6502/open.c +++ b/libsrc/rp6502/open.c @@ -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]);