diff options
author | Lars Persson | 2007-03-11 14:28:03 +0000 |
---|---|---|
committer | Lars Persson | 2007-03-11 14:28:03 +0000 |
commit | e8c941c1280005d53e97a5b43a266c13ad62ddd4 (patch) | |
tree | 557cd7907d8ae090bd30e21679051d6f75bbe3ba /common | |
parent | 39fdacf1fd5bed4b6365196556c273e4047a103d (diff) | |
download | scummvm-rg350-e8c941c1280005d53e97a5b43a266c13ad62ddd4.tar.gz scummvm-rg350-e8c941c1280005d53e97a5b43a266c13ad62ddd4.tar.bz2 scummvm-rg350-e8c941c1280005d53e97a5b43a266c13ad62ddd4.zip |
Added shared filed support using native file APIs.
svn-id: r26087
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp index df500c4c6b..af7d227344 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -112,6 +112,31 @@ #endif +#ifdef __SYMBIAN32__ + #undef feof + #undef clearerr + + #define FILE void + + FILE* symbian_fopen(const char* name, const char* mode); + void symbian_fclose(FILE* handle); + size_t symbian_fread(const void* ptr, size_t size, size_t numItems, FILE* handle); + size_t symbian_fwrite(const void* ptr, size_t size, size_t numItems, FILE* handle); + bool symbian_feof(FILE* handle); + long int symbian_ftell(FILE* handle); + int symbian_fseek(FILE* handle, long int offset, int whence); + void symbian_clearerr(FILE* handle); + + // Only functions used in the ScummVM source have been defined here! + #define fopen(name, mode) symbian_fopen(name, mode) + #define fclose(handle) symbian_fclose(handle) + #define fread(ptr, size, items, file) symbian_fread(ptr, size, items, file) + #define fwrite(ptr, size, items, file) symbian_fwrite(ptr, size, items, file) + #define feof(handle) symbian_feof(handle) + #define ftell(handle) symbian_ftell(handle) + #define fseek(handle, offset, whence) symbian_fseek(handle, offset, whence) + #define clearerr(handle) symbian_clearerr(handle) +#endif namespace Common { |