From: Eric Haszlakiewicz Date: Wed, 13 May 2020 14:53:05 +0000 (+0000) Subject: Issue #604: add check for __MINGW32__ in snprintf_compat.h X-Git-Tag: json-c-0.15-20200726~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d414d3eabc34269fb1f53b32be4547fab2a9a225;p=thirdparty%2Fjson-c.git Issue #604: add check for __MINGW32__ in snprintf_compat.h --- diff --git a/snprintf_compat.h b/snprintf_compat.h index cae32150..76f7a6ce 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;