We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc839b commit 75583e5Copy full SHA for 75583e5
goruby.c
@@ -1,12 +1,18 @@
1
-#include <unistd.h>
2
-
3
void Init_golf(void);
4
#define ruby_options goruby_options
5
#define ruby_run_node goruby_run_node
6
#include "main.c"
7
#undef ruby_options
8
#undef ruby_run_node
9
+#if defined _WIN32
+#include <io.h>
10
+#include <fcntl.h>
11
+#define pipe(p) _pipe(p, 32L, _O_NOINHERIT)
12
+#elif defined HAVE_UNISTD_H
13
+#include <unistd.h>
14
+#endif
15
+
16
RUBY_EXTERN void *ruby_options(int argc, char **argv);
17
RUBY_EXTERN int ruby_run_node(void*);
18
RUBY_EXTERN void ruby_init_ext(const char *name, void (*init)(void));
0 commit comments