Fix OSX issue with snprintf wrapper macro
authorBruce Hoult <bruce@hoult.org>
Sun, 4 Jan 2015 15:32:29 +0000 (04:32 +1300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 7 Jan 2015 17:50:41 +0000 (20:50 +0300)
commitbf62552626acc7ad8babdc350a6365cb97ec8776
tree20c7bdb45d9bdd25b240a325d5fa901bf8e9ef82
parentc2918ed5163430c26f9cee4d9cdfc79edc8412d4
Fix OSX issue with snprintf wrapper macro
(bug introduced in commit 7bef74b)

OS X for some reason has problems with defining snprintf as a macro
and including another macro expansion in its arguments.

* cord/tests/cordtest.c (GC_SNPRINTF_BUFSZ_ARG): Remove.
* cord/tests/cordtest.c (GC_SNPRINTF): Do not define if no snprintf()
available.
* cord/tests/cordtest.c (test_printf): If GC_SNPRINTF undefined then
use sprintf() instead.
cord/tests/cordtest.c