[Tizen] Add codes for Dali Windows Backend
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / image-loader.cpp
index b83878e..e8b3b79 100755 (executable)
@@ -33,6 +33,7 @@
 #include <dali/internal/system/common/file-reader.h>
 
 using namespace Dali::Integration;
+using namespace Dali::Internal::Platform;
 
 namespace Dali
 {
@@ -147,10 +148,10 @@ bool GetBitmapLoaderFunctions( FILE *fp,
                                const std::string& filename )
 {
   unsigned char magic[MAGIC_LENGTH];
-  size_t read = fread(magic, sizeof(unsigned char), MAGIC_LENGTH, fp);
+  size_t read = InternalFile::fread(magic, sizeof(unsigned char), MAGIC_LENGTH, fp);
 
   // Reset to the start of the file.
-  if( fseek(fp, 0, SEEK_SET) )
+  if( InternalFile::fseek(fp, 0, SEEK_SET) )
   {
     DALI_LOG_ERROR("Error seeking to start of file\n");
   }
@@ -235,7 +236,7 @@ bool GetBitmapLoaderFunctions( FILE *fp,
   }
 
   // Reset to the start of the file.
-  if( fseek(fp, 0, SEEK_SET) )
+  if( InternalFile::fseek(fp, 0, SEEK_SET) )
   {
     DALI_LOG_ERROR("Error seeking to start of file\n");
   }