From: Patrick Pelletier Date: Fri, 17 Aug 2018 18:53:19 +0000 (-0700) Subject: sim65: Build was failing on Windows, too. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7d158e077e8f76be2b8aa993606c2bf09919074;p=cc65 sim65: Build was failing on Windows, too. Microsoft loves putting underscores in front of everything! --- 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 */