Problem: confusing error message in snprintf_compat.h

Solution: fix it to reflect what's happening properly
This commit is contained in:
Yurii Rashkovskii
2022-12-23 14:35:36 -08:00
committed by GitHub
parent 79c147203e
commit 7b971b52aa

View File

@@ -35,7 +35,7 @@ static int json_c_snprintf(char *str, size_t size, const char *format, ...)
#define snprintf json_c_snprintf
#elif !defined(HAVE_SNPRINTF) /* !HAVE_SNPRINTF */
#error Need vsnprintf!
#error snprintf is required but was not found
#endif /* !HAVE_SNPRINTF && defined(WIN32) */
#endif /* __snprintf_compat_h */