From 183e241c45576332fd0a5e45dadb73254dbaf056 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Wed, 12 Oct 2022 23:13:55 -0700 Subject: [PATCH] Add missing header, and fix zlib.h header guards Former-commit-id: 125fef14cf3371a7eb6d8f8a4079f14ccb4320aa --- include/Kyoto/Streams/CZipSupport.hpp | 13 +++++++++++++ include/zlib/zlib.h | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 include/Kyoto/Streams/CZipSupport.hpp diff --git a/include/Kyoto/Streams/CZipSupport.hpp b/include/Kyoto/Streams/CZipSupport.hpp new file mode 100644 index 00000000..e419f6a5 --- /dev/null +++ b/include/Kyoto/Streams/CZipSupport.hpp @@ -0,0 +1,13 @@ +#ifndef _CZIPSUPPORT +#define _CZIPSUPPORT + +#include "rstl/single_ptr.hpp" +#include + +class CZipSupport { +public: + static void * Alloc(void* ptr, uint w1, uint w2); + static void Free(void*, void*); +}; + +#endif // _CZIPSUPPORT diff --git a/include/zlib/zlib.h b/include/zlib/zlib.h index 86d8e5cb..d945d77b 100644 --- a/include/zlib/zlib.h +++ b/include/zlib/zlib.h @@ -28,8 +28,8 @@ (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format). */ -#ifndef _ZLIB -#define _ZLIB +#ifndef _ZLIB_H +#define _ZLIB_H #include "zconf.h" @@ -890,4 +890,4 @@ ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void)); } #endif -#endif // _ZLIB +#endif /* _ZLIB_H */