summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-24 04:16:13 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-24 04:16:13 (GMT)
commitd6d393d268435ac08b4216c7fbb198e6ebb248ff (patch)
tree5fd10614dcee93f94bb097bd6f5c8e0a50a2f780 /win32
parentc15a74f3d0b31133c01a64334c6a660ad70fb442 (diff)
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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ba5caae..901bff1 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