mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* goruby.c: windows support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7bc839bdd2
commit
75583e52ce
1 changed files with 8 additions and 2 deletions
10
goruby.c
10
goruby.c
|
@ -1,5 +1,3 @@
|
|||
#include <unistd.h>
|
||||
|
||||
void Init_golf(void);
|
||||
#define ruby_options goruby_options
|
||||
#define ruby_run_node goruby_run_node
|
||||
|
@ -7,6 +5,14 @@ void Init_golf(void);
|
|||
#undef ruby_options
|
||||
#undef ruby_run_node
|
||||
|
||||
#if defined _WIN32
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
#define pipe(p) _pipe(p, 32L, _O_NOINHERIT)
|
||||
#elif defined HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
RUBY_EXTERN void *ruby_options(int argc, char **argv);
|
||||
RUBY_EXTERN int ruby_run_node(void*);
|
||||
RUBY_EXTERN void ruby_init_ext(const char *name, void (*init)(void));
|
||||
|
|
Loading…
Reference in a new issue