11 lines
343 B
C++
11 lines
343 B
C++
// zlib C allocator hooks. Kept in a separate TU and compiled as C++ with
|
|
// extern "C" names so MinGW's static link order can resolve zlib's references.
|
|
#include <cstdlib>
|
|
|
|
extern "C" void* zcalloc(void*, unsigned items, unsigned size) {
|
|
return std::calloc(items, size);
|
|
}
|
|
extern "C" void zcfree(void*, void* ptr) {
|
|
std::free(ptr);
|
|
}
|