From 68d4891327faeec22191fd6d19e80a3203db121b Mon Sep 17 00:00:00 2001 From: Kelvin Lee Date: Wed, 13 Apr 2022 02:59:45 +1000 Subject: [PATCH] VS2010: Use instead --- win32/zipconf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/win32/zipconf.h b/win32/zipconf.h index 861595a..e2434ee 100644 --- a/win32/zipconf.h +++ b/win32/zipconf.h @@ -21,7 +21,13 @@ #if !defined(__STDC_FORMAT_MACROS) #define __STDC_FORMAT_MACROS 1 #endif +#if defined(_MSC_VER) && _MSC_VER < 1700 +#include +#define PRIu32 "lu" +#define PRIu64 "llu" +#else #include +#endif typedef int8_t zip_int8_t; typedef uint8_t zip_uint8_t;