1--- misc/xmlsec1-1.2.14/apps/cmdline.c 2+++ misc/build/xmlsec1-1.2.14/apps/cmdline.c 3@@ -6,9 +6,13 @@ 4 * See Copyright for the status of this software. 5 * 6 * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com> 7 */ 8-#if defined(_MSC_VER) 9+/* A C runtime from VS2015 onwards supplies a conforming snprintf of its 10+ own, and refuses to be compiled with the name taken as a macro 11+ (C1189). Older runtimes, which is every one this shim was written 12+ for, keep it. */ 13+#if defined(_MSC_VER) && (_MSC_VER < 1900) 14 #define snprintf _snprintf 15 #endif 16 17 #include <stdio.h> 18--- misc/xmlsec1-1.2.14/apps/crypto.c 19+++ misc/build/xmlsec1-1.2.14/apps/crypto.c 20@@ -6,9 +6,13 @@ 21 * See Copyright for the status of this software. 22 * 23 * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com> 24 */ 25-#if defined(_MSC_VER) 26+/* A C runtime from VS2015 onwards supplies a conforming snprintf of its 27+ own, and refuses to be compiled with the name taken as a macro 28+ (C1189). Older runtimes, which is every one this shim was written 29+ for, keep it. */ 30+#if defined(_MSC_VER) && (_MSC_VER < 1900) 31 #define snprintf _snprintf 32 #endif 33 34 #include <string.h> 35--- misc/xmlsec1-1.2.14/apps/xmlsec.c 36+++ misc/build/xmlsec1-1.2.14/apps/xmlsec.c 37@@ -8,9 +8,13 @@ 38 #include <stdlib.h> 39 #include <string.h> 40 #include <time.h> 41 42-#if defined(_MSC_VER) 43+/* A C runtime from VS2015 onwards supplies a conforming snprintf of its 44+ own, and refuses to be compiled with the name taken as a macro 45+ (C1189). Older runtimes, which is every one this shim was written 46+ for, keep it. */ 47+#if defined(_MSC_VER) && (_MSC_VER < 1900) 48 #define snprintf _snprintf 49 #endif 50 51 #include <libxml/tree.h> 52