[ 
https://issues.apache.org/jira/browse/XERCESC-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17072987#comment-17072987
 ] 

Roger Leigh commented on XERCESC-2190:
--------------------------------------

I checked both call sites.

WindowsFileMgr.cpp: Used to check if on NT or not.  Can be dropped entirely (I 
doubt anyone cares about Windows 9x at this point)
Win32TransService: Used to check if on XP or later.  Can be dropped entirely 
(even XP is obsolete and unsupported at this point)

So both should be completely safe to drop.  They are only needed for Win9x and 
Win2000 respectively.

> deprecated GetVersionEx
> -----------------------
>
>                 Key: XERCESC-2190
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2190
>             Project: Xerces-C++
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: Aleksey Dobrunov
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Hello.
> *"GetVersionEx* may be altered or unavailable for releases after Windows 8.1. 
> Instead, use the [Version Helper 
> functions"|https://docs.microsoft.com/windows/desktop/SysInfo/version-helper-apis]
>  
> [https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getversionexa]
>   . 
> {code:java}
> C:\Work\code\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(323):
>  warning C4996: 'GetVersionExA': was declared deprecated
> C:\Program Files (x86)\Windows 
> Kits\10\include\10.0.18362.0\um\sysinfoapi.h(387): note: see declaration of 
> 'GetVersionExA'
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org

Reply via email to