mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Made compatible with VisualStudio
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user