fix zlib include

This commit is contained in:
Sébastien Noel 2025-02-24 10:20:48 +01:00
parent 8e0d30cd5c
commit 2b732d72c8
3 changed files with 4 additions and 2 deletions

View File

@ -59,6 +59,8 @@ if(USE_SYSTEM_ZLIB)
else() else()
message(FATAL_ERROR "Error! USE_SYSTEM_ZLIB is set but neccessary developer files are missing") message(FATAL_ERROR "Error! USE_SYSTEM_ZLIB is set but neccessary developer files are missing")
endif() endif()
else()
include_directories(${CMAKE_SOURCE_DIR}/Engine/zlib)
endif() endif()
# RAKE! Where to install the binaries. # RAKE! Where to install the binaries.

View File

@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
typedef unsigned char Byte; // !!! FIXME: not sure why I suddenly needed this typedef here. typedef unsigned char Byte; // !!! FIXME: not sure why I suddenly needed this typedef here.
#endif #endif
#include <Engine/zlib/zlib.h> #include <zlib.h>
extern CTCriticalSection zip_csLock; // critical section for access to zlib functions extern CTCriticalSection zip_csLock; // critical section for access to zlib functions
#pragma pack(1) #pragma pack(1)

View File

@ -18,7 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <Engine/Base/Stream.h> #include <Engine/Base/Stream.h>
#include <Engine/Network/Compression.h> #include <Engine/Network/Compression.h>
#include <Engine/Base/Synchronization.h> #include <Engine/Base/Synchronization.h>
#include <Engine/zlib/zlib.h> #include <zlib.h>
extern CTCriticalSection zip_csLock; // critical section for access to zlib functions extern CTCriticalSection zip_csLock; // critical section for access to zlib functions