gh-91349: Replace zlib with zlib-ng in Windows build (GH-131438)

This commit is contained in:
Steve Dower 2025-03-19 19:03:25 +00:00 committed by GitHub
parent c1a02f9101
commit 63a638c43f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 1277 additions and 38 deletions

View file

@ -2101,6 +2101,12 @@ zlib_exec(PyObject *mod)
PyUnicode_FromString(zlibVersion())) < 0) {
return -1;
}
#ifdef ZLIBNG_VERSION
if (PyModule_Add(mod, "ZLIBNG_VERSION",
PyUnicode_FromString(ZLIBNG_VERSION)) < 0) {
return -1;
}
#endif
if (PyModule_AddStringConstant(mod, "__version__", "1.0") < 0) {
return -1;
}