fixes Visual C++ compatibility

This commit is contained in:
frsyuki 2010-03-19 13:34:53 +09:00
parent 05a7e4eb64
commit 568704ed22
8 changed files with 351 additions and 280 deletions

View file

@ -30,7 +30,6 @@ bool msgpack_vrefbuffer_init(msgpack_vrefbuffer* vbuf,
vbuf->chunk_size = chunk_size;
vbuf->ref_size = ref_size;
// glibcは72バイト以下のmallocが高速
size_t nfirst = (sizeof(struct iovec) < 72/2) ?
72 / sizeof(struct iovec) : 8;