[libxml2/2.10] win32: Fix build with VS2013
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2/2.10] win32: Fix build with VS2013
- Date: Fri, 14 Oct 2022 12:39:49 +0000 (UTC)
commit 8d908c69aaf0599a854b756019de5a98d2e1101a
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Oct 11 13:00:33 2022 +0200
win32: Fix build with VS2013
Should fix #420.
include/win32config.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/include/win32config.h b/include/win32config.h
index 4f99ae0b..1d8fa087 100644
--- a/include/win32config.h
+++ b/include/win32config.h
@@ -12,9 +12,13 @@
#define HAVE_STDINT_H
#endif
-#if defined(_MSC_VER) && _MSC_VER < 1900
+#if defined(_MSC_VER)
+#if _MSC_VER < 1900
#define snprintf _snprintf
-#define vsnprintf _vsnprintf
+#endif
+#if _MSC_VER < 1500
+#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
+#endif
#endif
#endif /* __LIBXML_WIN32_CONFIG__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]