summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPaolo Bosetti <[email protected]>2013-12-10 14:34:26 +0100
committerPaolo Bosetti <[email protected]>2013-12-10 14:34:26 +0100
commit23afaf02dc146346da823f85cea7a51263d0e2b7 (patch)
treef8eb81a88486f024a1473f37db85eadc964da0d8 /include
parent5a59fd3a5c83395847448db333c9df9d253a158c (diff)
downloadmruby-23afaf02dc146346da823f85cea7a51263d0e2b7.tar.gz
mruby-23afaf02dc146346da823f85cea7a51263d0e2b7.zip
Made compatible with VisualStudio
Diffstat (limited to 'include')
-rw-r--r--include/mruby/ext/io.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/mruby/ext/io.h b/include/mruby/ext/io.h
index 209108a9d..4a476e0d5 100644
--- a/include/mruby/ext/io.h
+++ b/include/mruby/ext/io.h
@@ -11,24 +11,24 @@ extern "C" {
#include <errno.h>
-#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
-#if !defined(_WIN32) || !defined(__MINGW32__)
- #include <sys/wait.h>
-#else
+#if defined(_WIN32) || defined(_WIN64)
#include <winsock.h>
+#else
+ #include <unistd.h>
+ #include <sys/wait.h>
#endif
#include <stdio.h>
#include <string.h>
#include <limits.h>
struct mrb_io {
- int fd; /* file descriptor */
- int fd2; /* file descriptor */
- int pid; /* child's pid (for pipes) */
+ int fd; /* file descriptor */
+ int fd2; /* file descriptor */
+ int pid; /* child's pid (for pipes) */
};
struct mrb_io_type {