]> 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, 18 Jun 2014 23:04:28 +0000 (03:04 +0400)
commit7bef74b53fe4a400847c9bc60e6fcffa4b6ef4c4
tree532b748a7ade81e0a7ceac95f74461cc928148bb
parent6c7d42ddcad6f8e7a8909a11d531af0c2a5a7855
Fix unresolved vsnprintf in misc.c and snprintf in cordtest (DJGPP, VC)

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