]> git.sur5r.net Git - cc65/commitdiff
sim65: Build was failing on Windows, too.
authorPatrick Pelletier <code@funwithsoftware.org>
Fri, 17 Aug 2018 18:53:19 +0000 (11:53 -0700)
committerOliver Schmidt <ol.sc@web.de>
Fri, 17 Aug 2018 21:28:45 +0000 (23:28 +0200)
Microsoft loves putting underscores in front of everything!

src/sim65/paravirt.c

index 1c431fdc96a34e2e7124bbe8c79d76971dea5bce..dd8bc312799c28b465e1163d99b2f60168a9b7ea 100644 (file)
 #  include <unistd.h>
 #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 */