4343#ifndef _unz64_H
4444#define _unz64_H
4545
46+ #include " CCPlatformDefine.h"
47+
4648#ifndef _ZLIB_H
4749#include " zlib.h"
4850#endif
@@ -148,7 +150,7 @@ typedef struct unz_file_info_s
148150 tm_unz tmu_date;
149151} unz_file_info;
150152
151- int ZEXPORT unzStringFileNameCompare OF ((const char * fileName1,
153+ int CC_DLL unzStringFileNameCompare OF ((const char * fileName1,
152154 const char * fileName2,
153155 int iCaseSensitivity));
154156/*
@@ -161,8 +163,8 @@ int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
161163*/
162164
163165
164- unzFile ZEXPORT unzOpen OF ((const char *path));
165- unzFile ZEXPORT unzOpen64 OF ((const void *path));
166+ unzFile CC_DLL unzOpen OF ((const char *path));
167+ unzFile CC_DLL unzOpen64 OF ((const void *path));
166168/*
167169 Open a Zip file. path contain the full pathname (by example,
168170 on a Windows XP computer "c:\\zlib\\zlib113.zip" or on an Unix computer
@@ -179,39 +181,39 @@ unzFile ZEXPORT unzOpen64 OF((const void *path));
179181*/
180182
181183
182- unzFile ZEXPORT unzOpen2 OF ((const char *path,
184+ unzFile CC_DLL unzOpen2 OF ((const char *path,
183185 zlib_filefunc_def* pzlib_filefunc_def));
184186/*
185187 Open a Zip file, like unzOpen, but provide a set of file low level API
186188 for read/write the zip file (see ioapi.h)
187189*/
188190
189- unzFile ZEXPORT unzOpen2_64 OF ((const void *path,
191+ unzFile CC_DLL unzOpen2_64 OF ((const void *path,
190192 zlib_filefunc64_def* pzlib_filefunc_def));
191193/*
192194 Open a Zip file, like unz64Open, but provide a set of file low level API
193195 for read/write the zip file (see ioapi.h)
194196*/
195197
196- int ZEXPORT unzClose OF ((unzFile file));
198+ int CC_DLL unzClose OF ((unzFile file));
197199/*
198200 Close a ZipFile opened with unzipOpen.
199201 If there is files inside the .Zip opened with unzOpenCurrentFile (see later),
200202 these files MUST be closed with unzipCloseCurrentFile before call unzipClose.
201203 return UNZ_OK if there is no problem. */
202204
203- int ZEXPORT unzGetGlobalInfo OF ((unzFile file,
205+ int CC_DLL unzGetGlobalInfo OF ((unzFile file,
204206 unz_global_info *pglobal_info));
205207
206- int ZEXPORT unzGetGlobalInfo64 OF ((unzFile file,
208+ int CC_DLL unzGetGlobalInfo64 OF ((unzFile file,
207209 unz_global_info64 *pglobal_info));
208210/*
209211 Write info about the ZipFile in the *pglobal_info structure.
210212 No preparation of the structure is needed
211213 return UNZ_OK if there is no problem. */
212214
213215
214- int ZEXPORT unzGetGlobalComment OF ((unzFile file,
216+ int CC_DLL unzGetGlobalComment OF ((unzFile file,
215217 char *szComment,
216218 uLong uSizeBuf));
217219/*
@@ -224,14 +226,14 @@ int ZEXPORT unzGetGlobalComment OF((unzFile file,
224226/* **************************************************************************/
225227/* Unzip package allow you browse the directory of the zipfile */
226228
227- int ZEXPORT unzGoToFirstFile OF ((unzFile file));
229+ int CC_DLL unzGoToFirstFile OF ((unzFile file));
228230
229231/*
230232 Set the current file of the zipfile to the first file.
231233 return UNZ_OK if there is no problem
232234*/
233235
234- int ZEXPORT unzGoToFirstFile64 OF ((unzFile file,
236+ int CC_DLL unzGoToFirstFile64 OF ((unzFile file,
235237 unz_file_info64 *pfile_info,
236238 char *szFileName,
237239 uLong fileNameBufferSize));
@@ -241,14 +243,14 @@ int ZEXPORT unzGoToFirstFile64 OF((unzFile file,
241243 return UNZ_OK if there is no problem
242244*/
243245
244- int ZEXPORT unzGoToNextFile OF ((unzFile file));
246+ int CC_DLL unzGoToNextFile OF ((unzFile file));
245247/*
246248 Set the current file of the zipfile to the next file.
247249 return UNZ_OK if there is no problem
248250 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
249251*/
250252
251- int ZEXPORT unzGoToNextFile64 OF ((unzFile file,
253+ int CC_DLL unzGoToNextFile64 OF ((unzFile file,
252254 unz_file_info64 *pfile_info,
253255 char *szFileName,
254256 uLong fileNameBufferSize));
@@ -259,7 +261,7 @@ int ZEXPORT unzGoToNextFile64 OF((unzFile file,
259261 return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
260262*/
261263
262- int ZEXPORT unzLocateFile OF ((unzFile file,
264+ int CC_DLL unzLocateFile OF ((unzFile file,
263265 const char *szFileName,
264266 int iCaseSensitivity));
265267/*
@@ -281,11 +283,11 @@ typedef struct unz_file_pos_s
281283 uLong num_of_file; /* # of file */
282284} unz_file_pos;
283285
284- int ZEXPORT unzGetFilePos (
286+ int CC_DLL unzGetFilePos (
285287 unzFile file,
286288 unz_file_pos* file_pos);
287289
288- int ZEXPORT unzGoToFilePos (
290+ int CC_DLL unzGoToFilePos (
289291 unzFile file,
290292 unz_file_pos* file_pos);
291293
@@ -295,17 +297,17 @@ typedef struct unz64_file_pos_s
295297 ZPOS64_T num_of_file; /* # of file */
296298} unz64_file_pos;
297299
298- int ZEXPORT unzGetFilePos64 (
300+ int CC_DLL unzGetFilePos64 (
299301 unzFile file,
300302 unz64_file_pos* file_pos);
301303
302- int ZEXPORT unzGoToFilePos64 (
304+ int CC_DLL unzGoToFilePos64 (
303305 unzFile file,
304306 const unz64_file_pos* file_pos);
305307
306308/* ****************************************** */
307309
308- int ZEXPORT unzGetCurrentFileInfo64 OF ((unzFile file,
310+ int CC_DLL unzGetCurrentFileInfo64 OF ((unzFile file,
309311 unz_file_info64 *pfile_info,
310312 char *szFileName,
311313 uLong fileNameBufferSize,
@@ -314,7 +316,7 @@ int ZEXPORT unzGetCurrentFileInfo64 OF((unzFile file,
314316 char *szComment,
315317 uLong commentBufferSize));
316318
317- int ZEXPORT unzGetCurrentFileInfo OF ((unzFile file,
319+ int CC_DLL unzGetCurrentFileInfo OF ((unzFile file,
318320 unz_file_info *pfile_info,
319321 char *szFileName,
320322 uLong fileNameBufferSize,
@@ -338,7 +340,7 @@ int ZEXPORT unzGetCurrentFileInfo OF((unzFile file,
338340
339341/* * Addition for GDAL : START */
340342
341- ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 OF ((unzFile file));
343+ ZPOS64_T CC_DLL unzGetCurrentFileZStreamPos64 OF ((unzFile file));
342344
343345/* * Addition for GDAL : END */
344346
@@ -348,21 +350,21 @@ ZPOS64_T ZEXPORT unzGetCurrentFileZStreamPos64 OF((unzFile file));
348350 from it, and close it (you can close it before reading all the file)
349351 */
350352
351- int ZEXPORT unzOpenCurrentFile OF ((unzFile file));
353+ int CC_DLL unzOpenCurrentFile OF ((unzFile file));
352354/*
353355 Open for reading data the current file in the zipfile.
354356 If there is no error, the return value is UNZ_OK.
355357*/
356358
357- int ZEXPORT unzOpenCurrentFilePassword OF ((unzFile file,
359+ int CC_DLL unzOpenCurrentFilePassword OF ((unzFile file,
358360 const char * password));
359361/*
360362 Open for reading data the current file in the zipfile.
361363 password is a crypting password
362364 If there is no error, the return value is UNZ_OK.
363365*/
364366
365- int ZEXPORT unzOpenCurrentFile2 OF ((unzFile file,
367+ int CC_DLL unzOpenCurrentFile2 OF ((unzFile file,
366368 int * method,
367369 int * level,
368370 int raw));
@@ -375,7 +377,7 @@ int ZEXPORT unzOpenCurrentFile2 OF((unzFile file,
375377 but you CANNOT set method parameter as NULL
376378*/
377379
378- int ZEXPORT unzOpenCurrentFile3 OF ((unzFile file,
380+ int CC_DLL unzOpenCurrentFile3 OF ((unzFile file,
379381 int * method,
380382 int * level,
381383 int raw,
@@ -390,13 +392,13 @@ int ZEXPORT unzOpenCurrentFile3 OF((unzFile file,
390392*/
391393
392394
393- int ZEXPORT unzCloseCurrentFile OF ((unzFile file));
395+ int CC_DLL unzCloseCurrentFile OF ((unzFile file));
394396/*
395397 Close the file in zip opened with unzOpenCurrentFile
396398 Return UNZ_CRCERROR if all the file was read but the CRC is not good
397399*/
398400
399- int ZEXPORT unzReadCurrentFile OF ((unzFile file,
401+ int CC_DLL unzReadCurrentFile OF ((unzFile file,
400402 voidp buf,
401403 unsigned len));
402404/*
@@ -410,19 +412,19 @@ int ZEXPORT unzReadCurrentFile OF((unzFile file,
410412 (UNZ_ERRNO for IO error, or zLib error for uncompress error)
411413*/
412414
413- z_off_t ZEXPORT unztell OF ((unzFile file));
415+ z_off_t CC_DLL unztell OF ((unzFile file));
414416
415- ZPOS64_T ZEXPORT unztell64 OF ((unzFile file));
417+ ZPOS64_T CC_DLL unztell64 OF ((unzFile file));
416418/*
417419 Give the current position in uncompressed data
418420*/
419421
420- int ZEXPORT unzeof OF ((unzFile file));
422+ int CC_DLL unzeof OF ((unzFile file));
421423/*
422424 return 1 if the end of file was reached, 0 elsewhere
423425*/
424426
425- int ZEXPORT unzGetLocalExtrafield OF ((unzFile file,
427+ int CC_DLL unzGetLocalExtrafield OF ((unzFile file,
426428 voidp buf,
427429 unsigned len));
428430/*
@@ -441,12 +443,12 @@ int ZEXPORT unzGetLocalExtrafield OF((unzFile file,
441443/* **************************************************************************/
442444
443445/* Get the current file offset */
444- ZPOS64_T ZEXPORT unzGetOffset64 (unzFile file);
445- uLong ZEXPORT unzGetOffset (unzFile file);
446+ ZPOS64_T CC_DLL unzGetOffset64 (unzFile file);
447+ uLong CC_DLL unzGetOffset (unzFile file);
446448
447449/* Set the current file offset */
448- int ZEXPORT unzSetOffset64 (unzFile file, ZPOS64_T pos);
449- int ZEXPORT unzSetOffset (unzFile file, uLong pos);
450+ int CC_DLL unzSetOffset64 (unzFile file, ZPOS64_T pos);
451+ int CC_DLL unzSetOffset (unzFile file, uLong pos);
450452
451453} // end of namespace cocos2d
452454
0 commit comments