Improve the cosmocc toolchain

These changes were necessary to help Blink become buildable using
Cosmopolitan Libc.
This commit is contained in:
Justine Tunney 2023-01-05 12:20:52 -08:00
parent d73523864a
commit 416e173448
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 9 additions and 4 deletions

View file

@ -2,6 +2,7 @@
#define COSMOPOLITAN_THIRD_PARTY_ZLIB_INTERNAL_H_
#include "libc/str/str.h"
#include "third_party/zlib/deflate.internal.h"
#include "third_party/zlib/zconf.h"
#define Z_CRC32_SSE42_MINIMUM_LENGTH 64
#define Z_CRC32_SSE42_CHUNKSIZE_MASK 15
@ -11,7 +12,6 @@ COSMOPOLITAN_C_START_
#define zmemzero bzero
#define zmemcpy memmove
#define z_const const
unsigned deflate_read_buf(z_streamp, Bytef *, unsigned) _Hide;
void copy_with_crc(z_streamp, Bytef *, long) _Hide;