Files
ViewDesignEngine/cmake/opennurbs_zlib_compat.cpp
T
hm eb2e064be7
Build & Test / build-and-test (push) Canceled after 0s
VDE Build & Test / build-and-test (push) Canceled after 0s
Build & Test / python-bindings (push) Canceled after 0s
feat(3dm): optional openNURBS native import
2026-10-28 02:10:37 +08:00

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);
}