1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

include: Check whether _MSC_VER is defined

Should fix #795.
This commit is contained in:
Nick Wellnhofer 2024-09-04 16:19:42 +02:00
parent bd9eed4694
commit de10d4cd5f

View File

@ -59,7 +59,7 @@
#define XML_DEPRECATED
#elif __GNUC__ * 100 + __GNUC_MINOR__ >= 301
#define XML_DEPRECATED __attribute__((deprecated))
#elif _MSC_VER >= 1400
#elif defined(_MSC_VER) && _MSC_VER >= 1400
/* Available since Visual Studio 2005 */
#define XML_DEPRECATED __declspec(deprecated)
#else
@ -102,7 +102,7 @@
#define XML_POP_WARNINGS \
_Pragma("GCC diagnostic pop")
#elif _MSC_VER >= 1400
#elif defined(_MSC_VER) && _MSC_VER >= 1400
#define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
#define XML_POP_WARNINGS __pragma(warning(pop))