From d414d3eabc34269fb1f53b32be4547fab2a9a225 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Wed, 13 May 2020 14:53:05 +0000 Subject: Issue #604: add check for __MINGW32__ in snprintf_compat.h --- snprintf_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'snprintf_compat.h') diff --git a/snprintf_compat.h b/snprintf_compat.h index cae3215..76f7a6c 100644 --- a/snprintf_compat.h +++ b/snprintf_compat.h @@ -13,7 +13,7 @@ #include -#if !defined(HAVE_SNPRINTF) && defined(_MSC_VER) +#if !defined(HAVE_SNPRINTF) && (defined(_MSC_VER) || defined(__MINGW32__)) static int json_c_vsnprintf(char *str, size_t size, const char *format, va_list ap) { int ret; -- cgit v1.2.1