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:
Nobuyoshi Nakada 2025-12-12 13:04:09 +09:00 committed by Nobuyoshi Nakada
parent f939f0433a
commit 5541c0d896
Notes: git 2025-12-12 05:24:34 +00:00
2 changed files with 1 additions and 10 deletions

View File

@ -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);

View File

@ -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)