Skip to content

Commit

Permalink
Copy minizip header files to third-party include dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jan 25, 2024
1 parent 1317399 commit 7768201
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions include/xlsxwriter/third_party/ioapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__))

/* Linux needs this to support file operation on files larger then 4+GB
* But might need better if/def to select just the platforms that needs them. */
// Linux needs this to support file operation on files larger then 4+GB
// But might need better if/def to select just the platforms that needs them.

#ifndef __USE_FILE_OFFSET64
#define __USE_FILE_OFFSET64
Expand Down Expand Up @@ -150,7 +150,7 @@ typedef long (ZCALLBACK *tell_file_func) (voidpf opaque, voidpf stream)
typedef long (ZCALLBACK *seek_file_func) (voidpf opaque, voidpf stream, uLong offset, int origin);


/* here is the "old" 32 bits structure structure */
/* here is the "old" 32 bits structure */
typedef struct zlib_filefunc_def_s
{
open_file_func zopen_file;
Expand Down Expand Up @@ -194,8 +194,8 @@ typedef struct zlib_filefunc64_32_def_s

#define ZREAD64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
#define ZWRITE64(filefunc,filestream,buf,size) ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
/*#define ZTELL64(filefunc,filestream) ((*((filefunc).ztell64_file)) ((filefunc).opaque,filestream))*/
/*#define ZSEEK64(filefunc,filestream,pos,mode) ((*((filefunc).zseek64_file)) ((filefunc).opaque,filestream,pos,mode))*/
//#define ZTELL64(filefunc,filestream) ((*((filefunc).ztell64_file)) ((filefunc).opaque,filestream))
//#define ZSEEK64(filefunc,filestream,pos,mode) ((*((filefunc).zseek64_file)) ((filefunc).opaque,filestream,pos,mode))
#define ZCLOSE64(filefunc,filestream) ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))
#define ZERROR64(filefunc,filestream) ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))

Expand Down
6 changes: 3 additions & 3 deletions include/xlsxwriter/third_party/zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
extern "C" {
#endif

/*#define HAVE_BZIP2*/
//#define HAVE_BZIP2

#ifndef _ZLIB_H
#include "zlib.h"
Expand Down Expand Up @@ -190,9 +190,9 @@ extern int ZEXPORT zipOpenNewFileInZip64(zipFile file,
filename : the filename in zip (if NULL, '-' without quote will be used
*zipfi contain supplemental information
if extrafield_local!=NULL and size_extrafield_local>0, extrafield_local
contains the extrafield data the the local header
contains the extrafield data for the local header
if extrafield_global!=NULL and size_extrafield_global>0, extrafield_global
contains the extrafield data the the local header
contains the extrafield data for the global header
if comment != NULL, comment contain the comment string
method contain the compression method (0 for store, Z_DEFLATED for deflate)
level contain the level of compression (can be Z_DEFAULT_COMPRESSION)
Expand Down

0 comments on commit 7768201

Please sign in to comment.