mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-19 00:50:30 +00:00
Remove zlib namespacing (#1142)
We have an optimized version of zlib from the Chromium project. We need it for a lot of our libc services. It would be nice to export this to user applications if we can, since projects like llamafile are already depending on it under the private namespace, to avoid needing to link zlib twice.
This commit is contained in:
parent
deff138e7e
commit
5488f0b2ca
5 changed files with 16 additions and 12 deletions
4
third_party/zlib/zconf.h
vendored
4
third_party/zlib/zconf.h
vendored
|
@ -13,6 +13,7 @@
|
|||
|
||||
#define z_const const
|
||||
|
||||
#if 0
|
||||
#define Z_COSMO_PREFIX_SET
|
||||
|
||||
#define Bytef _Cz_Bytef
|
||||
|
@ -162,6 +163,9 @@
|
|||
#define zlibCompileFlags _Cz_zlibCompileFlags
|
||||
#define zlibVersion _Cz_zlibVersion
|
||||
|
||||
#pragma message "zconf is included, so zlibVersion should be renamed"
|
||||
|
||||
#endif
|
||||
|
||||
typedef unsigned char Byte;
|
||||
typedef unsigned int uInt; /* 16 bits or more */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue