xmlversion.h.in: Support marking APIs as deprecated on Visual Studio too
Hi,
From the commit message:
Add an implementation of XML_IGNORE_DEPRECATION_WARNINGS in libxml_wrap.h and add a corresponding XML_POP_WARNINGS implementation for Visual Studio, so that we can silence deprecation warnings when we attempt to build the Python bindings with Visual Studio.
Originally found when building the Python bindings in 2.10.3 where the build broke because some incorrect macros were defined (fixed later in the master branch. I will backport this MR in the 2.10 branch if this one is deemed ok.
This attempts to expand the support to display deprecation warnings from the compiler on Visual Studio 2005 or later when one attempts to use an API that has been marked deprecated with XML_DEPRECATED
.
With blessings, thank you!
Edited by Chun-wei Fan