Skip to content

Commit

Permalink
pkzip: some more missing DECLSPEC found
Browse files Browse the repository at this point in the history
DECLSPEC should be specified on each and every OpenCL kernel function (in general)
  • Loading branch information
philsmd committed Jun 7, 2019
1 parent a661728 commit 98759fb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions OpenCL/inc_zip_inflate.cl
Expand Up @@ -180,7 +180,7 @@ typedef int mz_bool;

typedef mz_uint64 tinfl_bit_buf_t;

void memcpy(void *dest, const void *src, u32 n){
DECLSPEC void memcpy(void *dest, const void *src, u32 n){
char *csrc = (char *)src;
char *cdest = (char *)dest;
for (int i=0; i<n; i++){
Expand All @@ -189,7 +189,7 @@ void memcpy(void *dest, const void *src, u32 n){
}


void *memset(u8 *s, int c, u32 len){
DECLSPEC void *memset(u8 *s, int c, u32 len){
u8 *dst = s;
while (len > 0) {
*dst = (u8) c;
Expand Down Expand Up @@ -447,15 +447,15 @@ typedef struct mz_stream_s

typedef mz_stream *mz_streamp;

// hashcat-patched: not needed functions:
// void miniz_def_free_func(void *opaque, void *address);
// void *miniz_def_alloc_func(void *opaque, size_t items, size_t size);
DECLSPEC int mz_inflate(mz_streamp pStream, int flush);
DECLSPEC int mz_inflateEnd(mz_streamp pStream);

void miniz_def_free_func(void *opaque, void *address);
void *miniz_def_alloc_func(void *opaque, size_t items, size_t size);
int mz_inflate(mz_streamp pStream, int flush);
int mz_inflateEnd(mz_streamp pStream);



int mz_inflateInit2(mz_streamp pStream, int window_bits, inflate_state*);
DECLSPEC int mz_inflateInit2(mz_streamp pStream, int window_bits, inflate_state*);


DECLSPEC const mz_uint8 pIn_xor_byte (const mz_uint8 c, mz_streamp pStream)
Expand Down

0 comments on commit 98759fb

Please sign in to comment.