Skip to content

Commit

Permalink
Manually re-apply libxlsxwriter customizations to minizip
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored and jmcnamara committed Nov 18, 2023
1 parent 957ed5c commit 7e8e9c0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions third_party/minizip/ioapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
*/


/* Pragma added by libxlsxwriter to avoid warnings with -pedantic -ansi. */
#ifndef _WIN32
#pragma GCC system_header
#endif

#ifndef _ZLIBIOAPI64_H
#define _ZLIBIOAPI64_H

Expand Down
13 changes: 13 additions & 0 deletions third_party/minizip/zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
*/

/* Pragma added by libxlsxwriter to avoid warnings with -pedantic -ansi. */
#ifndef _WIN32
#pragma GCC system_header
#endif

#ifndef _zip12_H
#define _zip12_H

Expand All @@ -54,6 +59,14 @@ extern "C" {
#include "ioapi.h"
#endif

/* Encryption not required by libxlsxwriter. */
#ifndef NOCRYPT
#define NOCRYPT
#endif
#ifndef NOUNCRYPT
#define NOUNCRYPT
#endif

#ifdef HAVE_BZIP2
#include "bzlib.h"
#endif
Expand Down

0 comments on commit 7e8e9c0

Please # to comment.