DSView/common/minizip/mztools.h
Huang Rui 778ed0360c
common/minizip/*: fix OF prototypes
Because the sys-libs/zlib header pollutes the macro namespace,
leading to build failures. Under the gentoo operating system,
the macro definition of OF becomes _Z_OF in zconf.h, but the
recently introduced minizip has introduced a large number of OF,
leading to build fail. Therefore, the prototypes of OF are added
so that they can be successfully built under various operating
systems.

Bug: https://bugs.gentoo.org/383179
Signed-off-by: Huang Rui <vowstar@gmail.com>
2022-06-16 16:06:01 +08:00

39 lines
724 B
C

/*
Additional tools for Minizip
Code: Xavier Roche '2004
License: Same as ZLIB (www.gzip.org)
*/
#ifndef _zip_tools_H
#define _zip_tools_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ZLIB_H
#include "zlib.h"
#include "of.h"
#endif
#include "unzip.h"
/* Repair a ZIP file (missing central directory)
file: file to recover
fileOut: output file after recovery
fileOutTmp: temporary file name used for recovery
*/
extern int ZEXPORT unzRepair(const char* file,
const char* fileOut,
const char* fileOutTmp,
uLong* nRecovered,
uLong* bytesRecovered);
#ifdef __cplusplus
}
#endif
#endif