Revert "[Tizen] Add a flag to check whether it is forced to enable"
[platform/core/uifw/dali-adaptor.git] / third-party / windows-platform / Win32File / OriginalFile.cpp
1 #include "stdio.h"
2
3 void* OriginalFOpen( const char *name, const char *mode )
4 {
5   return fopen( name, mode );
6 }
7
8 int OriginalFClose( const void *fp )
9 {
10   return fclose( (FILE*)fp );
11 }
12
13 int OriginalFRead( void* buf, int eleSize, int count, const void *fp )
14 {
15   return fread( buf, eleSize, count, (FILE*)fp );
16 }
17
18 void OriginalFWrite( void *buf, int size, const void *fp )
19 {
20   fwrite( buf, size, 1, (FILE*)fp );
21 }
22
23 void OriginalFWrite( void *buf, int eleSize, int count, const void *fp )
24 {
25   fwrite( buf, eleSize, count, (FILE*)fp );
26 }
27
28 int OriginalFSeek( const void *fp, int offset, int origin )
29 {
30   return fseek( (FILE*)fp, offset, origin );
31 }
32
33 int OriginalFTell( const void *fp )
34 {
35   return ftell( (FILE*)fp );
36 }
37
38 bool OriginalFEof( const void *fp )
39 {
40   return (bool)feof( (FILE*)fp );
41 }