aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/ds
diff options
context:
space:
mode:
authorMax Horn2008-09-14 22:44:49 +0000
committerMax Horn2008-09-14 22:44:49 +0000
commitace51b317a6de7d000c70c6643c193642efbc70b (patch)
treecfeacef2476b1ef3c8f39f5b5923600decc74dca /backends/fs/ds
parentc8eeae8d4dffa5849a23cf963884027a7789504b (diff)
downloadscummvm-rg350-ace51b317a6de7d000c70c6643c193642efbc70b.tar.gz
scummvm-rg350-ace51b317a6de7d000c70c6643c193642efbc70b.tar.bz2
scummvm-rg350-ace51b317a6de7d000c70c6643c193642efbc70b.zip
DS: Some more compile fixes (prope solution would of course be to overload ::openForReading & ::openForWriting)
svn-id: r34550
Diffstat (limited to 'backends/fs/ds')
-rw-r--r--backends/fs/ds/ds-fs.cpp13
-rw-r--r--backends/fs/ds/ds-fs.h3
2 files changed, 10 insertions, 6 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp
index d482109fdb..d0686f6414 100644
--- a/backends/fs/ds/ds-fs.cpp
+++ b/backends/fs/ds/ds-fs.cpp
@@ -677,9 +677,10 @@ bool std_feof(FILE* handle) {
return handle->pos >= handle->size;
}
-void std_fflush(FILE* handle) {
+int std_fflush(FILE* handle) {
//FIXME: not implemented?
// consolePrintf("fflush ");
+ return 0;
}
char* std_fgets(char* str, int size, FILE* file) {
@@ -748,6 +749,12 @@ int std_fseek(FILE* handle, long int offset, int whence) {
return 0;
}
+int std_ferror(FILE* handle) {
+ //FIXME: not implemented?
+// consolePrintf("ferror ");
+ return 0;
+}
+
void std_clearerr(FILE* handle) {
//FIXME: not implemented?
// consolePrintf("clearerr ");
@@ -810,8 +817,4 @@ void std_cwd(char* dir) {
}
}
-int std_ferror(FILE* handle) {
- return 0;
-}
-
} // namespace DS
diff --git a/backends/fs/ds/ds-fs.h b/backends/fs/ds/ds-fs.h
index 3692d10587..8697785101 100644
--- a/backends/fs/ds/ds-fs.h
+++ b/backends/fs/ds/ds-fs.h
@@ -189,7 +189,8 @@ long int std_ftell(FILE* handle);
int std_fseek(FILE* handle, long int offset, int whence);
void std_clearerr(FILE* handle);
void std_cwd(char* dir);
-void std_fflush(FILE* handle);
+int std_fflush(FILE* handle);
+int std_ferror(FILE* handle);
} //namespace DS