Remove ZEXTERN and EXPORT from internal functions

In inflate64.c on Windows, as zlib.h is included,
it sets ZEXTERN to " __declspec(dllimport)". In consequence,
our internal functions have the wrong linkage and linking fails
because of the missing dll functions.
This commit is contained in:
Jonas Zaddach
2025-08-07 11:01:06 +02:00
committed by Valerie Snyder
parent 7c222f4a12
commit 39ca12e136
2 changed files with 6 additions and 6 deletions

View File

@@ -62,7 +62,7 @@ local int inflate_table OF((codetype type, unsigned short FAR *lens,
unsigned FAR *bits, unsigned short FAR *work));
int ZEXPORT inflate64Init2(strm, windowBits)
int inflate64Init2(strm, windowBits)
z_stream64p strm;
int windowBits;
{
@@ -375,7 +375,7 @@ unsigned out;
will return Z_BUF_ERROR if it has not reached the end of the stream.
*/
int ZEXPORT inflate64(strm, flush)
int inflate64(strm, flush)
z_stream64p strm;
int flush;
{
@@ -805,7 +805,7 @@ int flush;
return ret;
}
int ZEXPORT inflate64End(strm)
int inflate64End(strm)
z_stream64p strm;
{
struct inflate_state FAR *state;

View File

@@ -91,8 +91,8 @@ typedef struct z_stream64_s {
typedef z_stream64 FAR *z_stream64p;
ZEXTERN int ZEXPORT inflate64 OF((z_stream64p strm, int flush));
ZEXTERN int ZEXPORT inflate64End OF((z_stream64p strm));
ZEXTERN int ZEXPORT inflate64Init2 OF((z_stream64p strm, int windowBits));
int inflate64 OF((z_stream64p strm, int flush));
int inflate64End OF((z_stream64p strm));
int inflate64Init2 OF((z_stream64p strm, int windowBits));
#endif /* __INFLATE64_H */