mirror of
https://github.com/json-c/json-c.git
synced 2026-04-11 08:19:08 +08:00
snprintf definition is needed here, too
This commit is contained in:
@@ -37,6 +37,13 @@
|
|||||||
char* strndup(const char* str, size_t n);
|
char* strndup(const char* str, size_t n);
|
||||||
#endif /* !HAVE_STRNDUP */
|
#endif /* !HAVE_STRNDUP */
|
||||||
|
|
||||||
|
#if !defined(HAVE_SNPRINTF) && defined(_MSC_VER)
|
||||||
|
/* MSC has the version as _snprintf */
|
||||||
|
# define snprintf _snprintf
|
||||||
|
#elif !defined(HAVE_SNPRINTF)
|
||||||
|
# error You do not have snprintf on your system.
|
||||||
|
#endif /* HAVE_SNPRINTF */
|
||||||
|
|
||||||
// Don't define this. It's not thread-safe.
|
// Don't define this. It's not thread-safe.
|
||||||
/* #define REFCOUNT_DEBUG 1 */
|
/* #define REFCOUNT_DEBUG 1 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user