change namespace from cocos2d to cc (#104)

This commit is contained in:
minggo 2020-06-16 10:16:32 +08:00 committed by GitHub
parent daa6839332
commit eab0959367
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 11 deletions

View File

@ -12,7 +12,7 @@
#include "ioapi.h"
namespace cocos2d {
namespace cc {
voidpf call_zopen64 (const zlib_filefunc64_32_def* pfilefunc,const void*filename,int mode)
{
@ -242,4 +242,4 @@ void fill_fopen64_filefunc (zlib_filefunc64_def* pzlib_filefunc_def)
pzlib_filefunc_def->opaque = NULL;
}
} // end of namespace cocos2d
} // end of namespace cc

View File

@ -44,7 +44,7 @@
#include <stdlib.h>
#include "zlib.h"
namespace cocos2d {
namespace cc {
#ifndef OF
#define OF _Z_OF
@ -194,6 +194,6 @@ void fill_zlib_filefunc64_32_def_from_filefunc32(zlib_filefunc64_32_def* p_fi
#define ZTELL64(filefunc,filestream) (call_ztell64((&(filefunc)),(filestream)))
#define ZSEEK64(filefunc,filestream,pos,mode) (call_zseek64((&(filefunc)),(filestream),(pos),(mode)))
} // end of namespace cocos2d
} // end of namespace cc
#endif

View File

@ -32,7 +32,7 @@
#endif
namespace cocos2d {
namespace cc {
voidpf ZCALLBACK fopen_mem_func (voidpf opaque,
const char* filename,
@ -228,4 +228,4 @@ namespace cocos2d {
pzlib_filefunc_def->zfile_func64.opaque = NULL;
}
}; // namespace cocos2d
}; // namespace cc

View File

@ -5,7 +5,7 @@
#include "ioapi.h"
namespace cocos2d {
namespace cc {
voidpf ZCALLBACK fopen_mem_func OF((
voidpf opaque,
const char* filename,

View File

@ -87,7 +87,7 @@
# include <errno.h>
#endif
namespace cocos2d {
namespace cc {
#ifndef local
# define local static
@ -2168,4 +2168,4 @@ int ZEXPORT unzSetOffset (unzFile file, uLong pos)
return unzSetOffset64(file,pos);
}
} // end of namespace cocos2d
} // end of namespace cc

View File

@ -78,7 +78,7 @@ typedef voidp unzFile;
#define UNZ_INTERNALERROR (-104)
#define UNZ_CRCERROR (-105)
namespace cocos2d {
namespace cc {
/* tm_unz contain date/time info */
typedef struct tm_unz_s
@ -451,6 +451,6 @@ uLong CC_DLL unzGetOffset (unzFile file);
int CC_DLL unzSetOffset64 (unzFile file, ZPOS64_T pos);
int CC_DLL unzSetOffset (unzFile file, uLong pos);
} // end of namespace cocos2d
}
#endif /* _unz64_H */