From 7b971b52aae602c733ba6bff8152cbdb486b54a1 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Fri, 23 Dec 2022 14:35:36 -0800 Subject: [PATCH] Problem: confusing error message in snprintf_compat.h Solution: fix it to reflect what's happening properly --- snprintf_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snprintf_compat.h b/snprintf_compat.h index 76f7a6c..51fcb24 100644 --- a/snprintf_compat.h +++ b/snprintf_compat.h @@ -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 */ -- 2.49.0