diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-05 04:38:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-05 04:38:23 +0000 |
commit | bdeede28b2c8b8b4853b322f244b8e400dc80292 (patch) | |
tree | 4b5f5f71c674936ab73fa1eb1d6967e16be765c1 /win32 | |
parent | 8311b821a4a75b3e9f21e588cf5625c87c54379e (diff) | |
download | ruby-bdeede28b2c8b8b4853b322f244b8e400dc80292.tar.gz ruby-bdeede28b2c8b8b4853b322f244b8e400dc80292.tar.xz ruby-bdeede28b2c8b8b4853b322f244b8e400dc80292.zip |
* 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
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 8 |
1 files changed, 5 insertions, 3 deletions
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) |