From a7d158e077e8f76be2b8aa993606c2bf09919074 Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Fri, 17 Aug 2018 11:53:19 -0700 Subject: [PATCH] sim65: Build was failing on Windows, too. Microsoft loves putting underscores in front of everything! --- src/sim65/paravirt.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/sim65/paravirt.c b/src/sim65/paravirt.c index 1c431fdc9..dd8bc3127 100644 --- a/src/sim65/paravirt.c +++ b/src/sim65/paravirt.c @@ -49,10 +49,18 @@ # include #endif #ifndef S_IREAD -# define S_IREAD S_IRUSR +# ifdef _WIN32 +# define S_IREAD _S_IREAD +# else +# define S_IREAD S_IRUSR +# endif #endif #ifndef S_IWRITE -# define S_IWRITE S_IWUSR +# ifdef _WIN32 +# define S_IWRITE _S_IWRITE +# else +# define S_IWRITE S_IWUSR +# endif #endif /* common */ -- 2.39.5