]> git.sur5r.net Git - cc65/commitdiff
Minor changes for MSC compatibility
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 12 Jun 2000 12:32:39 +0000 (12:32 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 12 Jun 2000 12:32:39 +0000 (12:32 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@61 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/incpath.c
src/cc65/include.c

index 51554a83061eeda9950135392cf0a7694b891eef..28736716950fdfbd42c7cd2928af5109be0f1132 100644 (file)
 
 #include <stdio.h>
 #include <string.h>
-#include <unistd.h>
+#if defined(_MSC_VER)
+/* Microsoft compiler */
+#  include <io.h>
+#  define R_OK 4
+#else
+/* Anyone else */
+#  include <unistd.h>
+#endif
 
 #include "mem.h"
 #include "incpath.h"
index 8f7a35942e3b0f745330f9ffb8503b98db854217..e68227fdfe0bb57f75a4a0977795fa1ed235c71c 100644 (file)
@@ -8,7 +8,14 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <unistd.h>
+#if defined(_MSC_VER)
+/* Microsoft compiler */
+#  include <io.h>
+#  define R_OK 4
+#else
+/* Anyone else */
+#  include <unistd.h>
+#endif
 
 #include "mem.h"
 #include "include.h"