mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Add zlib to the web build, fix an error in CThread...
This commit is contained in:
22
thirdparty/zlib/CMakeLists.txt
vendored
Normal file
22
thirdparty/zlib/CMakeLists.txt
vendored
Normal 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 .)
|
||||
2
thirdparty/zlib/gzguts.h
vendored
2
thirdparty/zlib/gzguts.h
vendored
@@ -37,6 +37,8 @@
|
||||
|
||||
#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
|
||||
# include <io.h>
|
||||
#else
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
Reference in New Issue
Block a user