[Tizen] Add codes for Dali Windows Backend
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / image-loader.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 80824ac..724765e
@@ -32,6 +32,7 @@
 #include <dali/internal/system/common/file-reader.h>
 
 using namespace Dali::Integration;
+using namespace Dali::Internal::Platform;
 
 namespace Dali
 {
@@ -159,10 +160,10 @@ bool GetBitmapLoaderFunctions( FILE *fp,
                                Bitmap::Profile& profile )
 {
   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");
   }
@@ -237,7 +238,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");
   }