mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Move zlib down
This commit is contained in:
parent
4021cd0c1e
commit
e2b3c3618e
4 changed files with 10 additions and 10 deletions
10
third_party/zlib/zutil.c
vendored
10
third_party/zlib/zutil.c
vendored
|
@ -313,11 +313,7 @@ voidpf ZLIB_INTERNAL zcalloc (opaque, items, size)
|
|||
unsigned size;
|
||||
{
|
||||
(void)opaque;
|
||||
if (_weaken(malloc)) {
|
||||
return _weaken(malloc)(items * size);
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
return malloc(items * size);
|
||||
}
|
||||
|
||||
void ZLIB_INTERNAL zcfree (opaque, ptr)
|
||||
|
@ -325,9 +321,7 @@ void ZLIB_INTERNAL zcfree (opaque, ptr)
|
|||
voidpf ptr;
|
||||
{
|
||||
(void)opaque;
|
||||
if (_weaken(free)) {
|
||||
_weaken(free)(ptr);
|
||||
}
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
#endif /* MY_ZCALLOC */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue