* win32/win32.c (Win32System, Win32Version): moved before get_version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f4259225d5
commit
b9e0c6ec08
@ -196,6 +196,11 @@ rb_w32_map_errno(DWORD winerr)
|
|||||||
static const char *NTLoginName;
|
static const char *NTLoginName;
|
||||||
|
|
||||||
static OSVERSIONINFO osver;
|
static OSVERSIONINFO osver;
|
||||||
|
#ifdef _M_IX86
|
||||||
|
static DWORD Win32System = (DWORD)-1;
|
||||||
|
#endif
|
||||||
|
static DWORD Win32Version = (DWORD)-1;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
get_version(void)
|
get_version(void)
|
||||||
{
|
{
|
||||||
@ -207,8 +212,6 @@ get_version(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _M_IX86
|
#ifdef _M_IX86
|
||||||
static DWORD Win32System = (DWORD)-1;
|
|
||||||
|
|
||||||
DWORD
|
DWORD
|
||||||
rb_w32_osid(void)
|
rb_w32_osid(void)
|
||||||
{
|
{
|
||||||
@ -218,7 +221,6 @@ rb_w32_osid(void)
|
|||||||
return (Win32System);
|
return (Win32System);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
static DWORD Win32Version = (DWORD)-1;
|
|
||||||
|
|
||||||
static DWORD
|
static DWORD
|
||||||
rb_w32_osver(void)
|
rb_w32_osver(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user