]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Issue #604: add check for __MINGW32__ in snprintf_compat.h
authorEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 13 May 2020 14:53:05 +0000 (14:53 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 13 May 2020 14:53:05 +0000 (14:53 +0000)
snprintf_compat.h

index cae321508cf17a5a81effc97486a5c38de33556e..76f7a6ce22ee34bcbd44d3d98e6521691ee1af32 100644 (file)
@@ -13,7 +13,7 @@
 
 #include <stdarg.h>
 
-#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;