summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-15 20:52:18 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-15 20:52:18 (GMT)
commit67f5f0a9fd012f3da7cadf653102671a8f316718 (patch)
tree4af09c6821acd330943f5f99a83db3bd549121e9
parentfcfbb0a9244ff52d03fec67de7a2a8d0ff406db3 (diff)
downloadCMake-67f5f0a9fd012f3da7cadf653102671a8f316718.zip
CMake-67f5f0a9fd012f3da7cadf653102671a8f316718.tar.gz
CMake-67f5f0a9fd012f3da7cadf653102671a8f316718.tar.bz2
libarchive: Use _snprintf on Windows, not snprintf
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_read_support_format_zip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_read_support_format_zip.c b/Utilities/cmlibarchive/libarchive/archive_read_support_format_zip.c
index b2614a0..5ef2952 100644
--- a/Utilities/cmlibarchive/libarchive/archive_read_support_format_zip.c
+++ b/Utilities/cmlibarchive/libarchive/archive_read_support_format_zip.c
@@ -64,6 +64,10 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_support_format_zip.c 201102
#include "archive_crc32.h"
#endif
+#if defined(_WIN32) && !defined(__CYGWIN__)
+# define snprintf _snprintf
+#endif
+
struct zip_entry {
struct archive_rb_node node;
struct zip_entry *next;