Made compatible with VisualStudio

This commit is contained in:
Paolo Bosetti
2013-12-10 14:34:26 +01:00
parent 5a59fd3a5c
commit 23afaf02dc
5 changed files with 91 additions and 30 deletions
+7 -7
View File
@@ -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 {