Skip to content

Commit

Permalink
Move zlib include to zip/unzip headers like org minizip.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Nov 11, 2024
1 parent 5221967 commit 3bced61
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
8 changes: 0 additions & 8 deletions compat/ioapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@

#include <stdint.h>

#if !defined(_ZLIB_H) && !defined(ZLIB_H) && !defined(ZLIB_H_)
# if __has_include(<zlib-ng.h>)
# include <zlib-ng.h>
# elif __has_include(<zlib.h>)
# include <zlib.h>
# endif
#endif

typedef uint64_t ZPOS64_T;

#ifndef ZEXPORT
Expand Down
8 changes: 8 additions & 0 deletions compat/unzip.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ extern "C" {

#include <stdint.h>

#if !defined(_ZLIB_H) && !defined(ZLIB_H) && !defined(ZLIB_H_)
# if __has_include(<zlib-ng.h>)
# include <zlib-ng.h>
# elif __has_include(<zlib.h>)
# include <zlib.h>
# endif
#endif

#ifndef _ZLIBIOAPI_H
# include "ioapi.h"
#endif
Expand Down
8 changes: 8 additions & 0 deletions compat/zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ extern "C" {

#include <stdint.h>

#if !defined(_ZLIB_H) && !defined(ZLIB_H) && !defined(ZLIB_H_)
# if __has_include(<zlib-ng.h>)
# include <zlib-ng.h>
# elif __has_include(<zlib.h>)
# include <zlib.h>
# endif
#endif

#ifndef _ZLIBIOAPI_H
# include "ioapi.h"
#endif
Expand Down

0 comments on commit 3bced61

Please sign in to comment.