]> granicus.if.org Git - gc/commit
Fix unresolved vsnprintf in misc.c and snprintf in cordtest (DJGPP, VC)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jun 2014 23:04:28 +0000 (03:04 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 16 Mar 2016 20:48:39 +0000 (23:48 +0300)
commit01ed29865fca4eecc81fabcb7484146a0a3cfa2e
tree4dd348e8ed06a609058dfc4ade962e5dd2445ac1
parentbe1af566fe62be154cd42cbf39c8b4c6e6565580
Fix unresolved vsnprintf in misc.c and snprintf in cordtest (DJGPP, VC)
(Apply commit c3ecfd8 from 'release-7_4' branch.)

* cord/cordtest.c (GC_SNPRINTF, GC_SNPRINTF_BUFSZ_ARG): New
macro to workaround snprintf() missing in DJGPP and MS VC.
* cord/cordtest.c (test_printf): Replace snprintf() with
GC_SNPRINTF and GC_SNPRINTF_BUFSZ_ARG.
* misc.c (vsnprintf): Test DJGPP instead of NO_VSNPRINTF; refine
comment.
cord/cordtest.c
misc.c