Skip to content

Commit d414d3e

Browse files
committed
Issue json-c#604: add check for __MINGW32__ in snprintf_compat.h
1 parent 2e71fe0 commit d414d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snprintf_compat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <stdarg.h>
1515

16-
#if !defined(HAVE_SNPRINTF) && defined(_MSC_VER)
16+
#if !defined(HAVE_SNPRINTF) && (defined(_MSC_VER) || defined(__MINGW32__))
1717
static int json_c_vsnprintf(char *str, size_t size, const char *format, va_list ap)
1818
{
1919
int ret;

0 commit comments

Comments
 (0)