ruby-changes:38301
From: nobu <ko1@a...>
Date: Fri, 24 Apr 2015 13:16:27 +0900 (JST)
Subject: [ruby-changes:38301] nobu:r50382 (trunk): win32.c: fix for mingw
nobu 2015-04-24 13:16:13 +0900 (Fri, 24 Apr 2015) New Revision: 50382 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50382 Log: win32.c: fix for mingw * win32/win32.c (_pioinfo): necessary on mingw too. * win32/win32.c (init_stdhandle): remove stale function for Borland C. Modified files: trunk/win32/win32.c Index: win32/win32.c =================================================================== --- win32/win32.c (revision 50381) +++ win32/win32.c (revision 50382) @@ -2315,6 +2315,9 @@ set_pioinfo_extra(void) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L2315 pioinfo_extra = 0; } } +#else +#define pioinfo_extra 0 +#endif static inline ioinfo* _pioinfo(int fd) @@ -2414,17 +2417,6 @@ init_stdhandle(void) https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L2417 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/