From bdeede28b2c8b8b4853b322f244b8e400dc80292 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Mar 2009 04:38:23 +0000 Subject: * win32/win32.c (Win32System, Win32Version): moved before get_version. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'win32') diff --git a/win32/win32.c b/win32/win32.c index 57b8ed32e..97353b896 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -196,6 +196,11 @@ rb_w32_map_errno(DWORD winerr) static const char *NTLoginName; static OSVERSIONINFO osver; +#ifdef _M_IX86 +static DWORD Win32System = (DWORD)-1; +#endif +static DWORD Win32Version = (DWORD)-1; + static void get_version(void) { @@ -207,8 +212,6 @@ get_version(void) } #ifdef _M_IX86 -static DWORD Win32System = (DWORD)-1; - DWORD rb_w32_osid(void) { @@ -218,7 +221,6 @@ rb_w32_osid(void) return (Win32System); } #endif -static DWORD Win32Version = (DWORD)-1; static DWORD rb_w32_osver(void) -- cgit