mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-19 13:55:12 -04:00
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:
committed by
Valerie Snyder
parent
7c222f4a12
commit
39ca12e136
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user