diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-24 04:16:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-24 04:16:13 +0000 |
commit | d6d393d268435ac08b4216c7fbb198e6ebb248ff (patch) | |
tree | 5fd10614dcee93f94bb097bd6f5c8e0a50a2f780 | |
parent | c15a74f3d0b31133c01a64334c6a660ad70fb442 (diff) | |
download | ruby-d6d393d268435ac08b4216c7fbb198e6ebb248ff.tar.gz |
win32.c: fix for mingw
* win32/win32.c (_pioinfo): necessary on mingw too.
* win32/win32.c (init_stdhandle): remove stale function for
Borland C.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | win32/win32.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/win32/win32.c b/win32/win32.c index ba5caae7df..901bff186d 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2315,6 +2315,9 @@ set_pioinfo_extra(void) pioinfo_extra = 0; } } +#else +#define pioinfo_extra 0 +#endif static inline ioinfo* _pioinfo(int fd) @@ -2414,17 +2417,6 @@ init_stdhandle(void) if (nullfd >= 0 && !keep) close(nullfd); setvbuf(stderr, NULL, _IONBF, 0); } -#else - -#define _set_osfhnd(fh, osfh) (void)((fh), (osfh)) -#define _set_osflags(fh, flags) (void)((fh), (flags)) - -/* License: Ruby's */ -static void -init_stdhandle(void) -{ -} -#endif #undef getsockopt |