Hi all.
I was trying compiled cocos2d as dynamic libraly for include in Android project. And i get error with one of extension module unzip
one of file ioapi.cpp has function which cannot use on curent platform
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MARMALADE || CC_TARGET_PLATFORM == CC_PLATFORM_BADA || CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY || CC_TARGET_PLATFORM == CC_PLATFORM_NACL || CC_TARGET_PLATFORM == CC_PLATFORM_EMSCRIPTEN)
return -1;
#else
int fseek_origin=0;
switch (origin)
{
case ZLIB_FILEFUNC_SEEK_CUR :
fseek_origin = SEEK_CUR;
break;
case ZLIB_FILEFUNC_SEEK_END :
fseek_origin = SEEK_END;
break;
case ZLIB_FILEFUNC_SEEK_SET :
fseek_origin = SEEK_SET;
break;
default: return -1;
}
if(fseeko64((FILE *)stream, offset, fseek_origin) != 0)
return -1;
return 0;
#endif
And i get a this error^
\unzip\ioapi.cpp(200,8): error : use of undeclared identifier 'fseeko64'
\unzip\ioapi.cpp(117,16): error : use of undeclared identifier 'fopen64'
\unzip\ioapi.cpp(153,11): error : use of undeclared identifier 'ftello64'
What i do wrong?
In definition of preprocessor i use only ANDROID flag. When i try use USE_FILE32API, i get many others error.
PS. sorry, my english is so bad