Browse Source

Problem: confusing error message in snprintf_compat.h

Solution: fix it to reflect what's happening properly
tags/json-c-0.17-20230812
Yurii Rashkovskii GitHub 2 years ago
parent
commit
7b971b52aa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      snprintf_compat.h

+ 1
- 1
snprintf_compat.h View File

@@ -35,7 +35,7 @@ static int json_c_snprintf(char *str, size_t size, const char *format, ...)
#define snprintf json_c_snprintf #define snprintf json_c_snprintf


#elif !defined(HAVE_SNPRINTF) /* !HAVE_SNPRINTF */ #elif !defined(HAVE_SNPRINTF) /* !HAVE_SNPRINTF */
#error Need vsnprintf!
#error snprintf is required but was not found
#endif /* !HAVE_SNPRINTF && defined(WIN32) */ #endif /* !HAVE_SNPRINTF && defined(WIN32) */


#endif /* __snprintf_compat_h */ #endif /* __snprintf_compat_h */

Loading…
Cancel
Save