mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
Win32: Make rb_w32_osid return Windows NT always
Since support for Windows 9x was dropped over a decade ago.
This commit is contained in:
parent
f939f0433a
commit
5541c0d896
Notes:
git
2025-12-12 05:24:34 +00:00
@ -307,7 +307,7 @@ extern const char *WSAAPI rb_w32_inet_ntop(int,const void *,char *,size_t);
|
||||
extern int WSAAPI rb_w32_inet_pton(int,const char *,void *);
|
||||
|
||||
RBIMPL_ATTR_DEPRECATED(("as Windows 9x is not supported already"))
|
||||
extern DWORD rb_w32_osid(void);
|
||||
static inline DWORD rb_w32_osid(void) {return VER_PLATFORM_WIN32_NT;}
|
||||
RBIMPL_ATTR_DEPRECATED(("by Windows Version Helper APIs"))
|
||||
extern DWORD rb_w32_osver(void);
|
||||
|
||||
|
||||
@ -314,15 +314,6 @@ get_version(void)
|
||||
GetVersionEx(&osver);
|
||||
}
|
||||
|
||||
#ifdef _M_IX86
|
||||
/* License: Artistic or GPL */
|
||||
DWORD
|
||||
rb_w32_osid(void)
|
||||
{
|
||||
return osver.dwPlatformId;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* License: Artistic or GPL */
|
||||
DWORD
|
||||
rb_w32_osver(void)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user