diff options
| author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-05-13 14:53:05 +0000 |
|---|---|---|
| committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-05-13 14:53:05 +0000 |
| commit | d414d3eabc34269fb1f53b32be4547fab2a9a225 (patch) | |
| tree | 89e1d9cfe6b0fa944c6814420fe7caba7c6742f6 | |
| parent | 2e71fe0963ebdb2b09829972937f8ac508be6332 (diff) | |
| download | json-c-d414d3eabc34269fb1f53b32be4547fab2a9a225.tar.gz | |
Issue #604: add check for __MINGW32__ in snprintf_compat.h
| -rw-r--r-- | snprintf_compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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; |
