From 6904c662574a4ac0968bb286f26436a4dbe0c9b3 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 22 Nov 2011 09:08:34 +0000 Subject: [PATCH] * win32/win32.c (_pioinfo): need to declare _pioinfo() before using _osfhnd and other macros which uses _pioinfo() internally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ win32/win32.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7359e3bd25..fa72628da5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 22 18:07:32 2011 NAKAMURA Usaku + + * win32/win32.c (_pioinfo): need to declare _pioinfo() before using + _osfhnd and other macros which uses _pioinfo() internally. + Tue Nov 22 17:49:45 2011 Nobuyoshi Nakada * win32/win32.c (_pioinfo): make an inline function. diff --git a/win32/win32.c b/win32/win32.c index a2b24c764d..3b2e58f5cd 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2156,6 +2156,7 @@ typedef struct { #if !defined(__BORLANDC__) EXTERN_C _CRTIMP ioinfo * __pioinfo[]; +static inline ioinfo* _pioinfo(int); #define IOINFO_L2E 5 #define IOINFO_ARRAY_ELTS (1 << IOINFO_L2E)