void bson_mem_restore_vtable (void) { bson_mem_vtable_t vtable = { malloc, calloc, #ifdef BSON_HAVE_REALLOCF reallocf, #else realloc, #endif free, }; bson_mem_set_vtable (&vtable); }
void bson_mem_restore_vtable (void) { bson_mem_vtable_t vtable = { malloc, calloc, #ifdef __APPLE__ reallocf, #else realloc, #endif free, }; bson_mem_set_vtable(&vtable); }