X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Floader-ico.cpp;h=bd65cd59f7aecaed3e054674cb33daed9759abec;hp=e8daa077b6bf5d8d491720b1effd748621a98ee2;hb=240762c32ee5c8584b3a128ca775188a9b1c0cf4;hpb=064bd8be3d1eaa92475030caf03f732da76aaaaa diff --git a/dali/internal/imaging/common/loader-ico.cpp b/dali/internal/imaging/common/loader-ico.cpp old mode 100644 new mode 100755 index e8daa07..bd65cd5 --- a/dali/internal/imaging/common/loader-ico.cpp +++ b/dali/internal/imaging/common/loader-ico.cpp @@ -58,6 +58,10 @@ #include #include +#include + +using namespace Dali::Internal::Platform; + namespace Dali { @@ -174,13 +178,13 @@ bool LoadIcoHeaderHelper( FILE* fp, unsigned short word; unsigned char byte; - if( fseek(fp,0,SEEK_END) ) + if( InternalFile::fseek(fp,0,SEEK_END) ) { DALI_LOG_ERROR("Error seeking ICO data\n"); return false; } - long positionIndicator = ftell(fp); + long positionIndicator = InternalFile::ftell(fp); fsize = 0u; if( positionIndicator > -1L ) @@ -193,7 +197,7 @@ bool LoadIcoHeaderHelper( FILE* fp, return false; } - if( fseek(fp, 0, SEEK_SET) ) + if( InternalFile::fseek(fp, 0, SEEK_SET) ) { DALI_LOG_ERROR("Error seeking ICO data\n"); return false; @@ -205,7 +209,7 @@ bool LoadIcoHeaderHelper( FILE* fp, } map.Resize(fsize); - if(fread(&map[0], 1, fsize, fp) != fsize) + if(InternalFile::fread(&map[0], 1, fsize, fp) != fsize) { DALI_LOG_WARNING("image file read opeation error!\n"); return false;