* misc.c (vsnprintf): Redirect to vsprintf() if NO_VSNPRINTF.
+2011-05-31 Ivan Maidanski <ivmai@mail.ru>
+
+ * misc.c (vsnprintf): Redirect to vsprintf() if NO_VSNPRINTF.
+
2011-05-31 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c (GC_unregister_my_thread): Use KNOWN_FINISHED()
#endif /* !MSWIN32 && !OS2 && !MACOS */
#define BUFSZ 1024
-#ifdef _MSC_VER
+
+#ifdef NO_VSNPRINTF
+ /* In case this function is missing (eg., in DJGPP v2.0.3). */
+# define vsnprintf(buf, bufsz, format, args) vsprintf(buf, format, args)
+#elif defined(_MSC_VER)
# ifdef MSWINCE
/* _vsnprintf is deprecated in WinCE */
# define vsnprintf StringCchVPrintfA