Browse Source

snprintf definition is needed here, too

tags/json-c-0.12-20140410
Anatol Belski 12 years ago
parent
commit
ed819fb926
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      json_object.c

+ 7
- 0
json_object.c View File

@@ -37,6 +37,13 @@
char* strndup(const char* str, size_t n);
#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.
/* #define REFCOUNT_DEBUG 1 */



Loading…
Cancel
Save