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;