Add zlib to the web build, fix an error in CThread...

This commit is contained in:
iProgramInCpp
2023-08-17 10:28:01 +03:00
parent 37ffbde73c
commit 906b96edd8
5 changed files with 33 additions and 4 deletions

22
thirdparty/zlib/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,22 @@
cmake_minimum_required(VERSION 3.16.0)
project(zlib)
# Build
add_library(zlib STATIC
adler32.c
compress.c
crc32.c
deflate.c
gzclose.c
gzlib.c
gzread.c
gzwrite.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
)
target_include_directories(zlib PUBLIC .)

View File

@@ -37,6 +37,8 @@
#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
# include <io.h>
#else
# include <unistd.h>
#endif
#if defined(_WIN32)