aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2009-11-23 22:28:14 +0000
committerMax Horn2009-11-23 22:28:14 +0000
commit68ebbf9022357b4a01063fe7354957c8df296346 (patch)
treedb20acaa896f5980b432d95863e44b7df208015b
parent016f343ca753077eb68b1fced19604aae785e755 (diff)
downloadscummvm-rg350-68ebbf9022357b4a01063fe7354957c8df296346.tar.gz
scummvm-rg350-68ebbf9022357b4a01063fe7354957c8df296346.tar.bz2
scummvm-rg350-68ebbf9022357b4a01063fe7354957c8df296346.zip
Remove obsolete OSX & NDS specific stuff from StdioStream code
svn-id: r46104
-rw-r--r--backends/fs/stdiostream.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/backends/fs/stdiostream.cpp b/backends/fs/stdiostream.cpp
index f7863860ea..92aa8b825e 100644
--- a/backends/fs/stdiostream.cpp
+++ b/backends/fs/stdiostream.cpp
@@ -27,11 +27,6 @@
#include <errno.h>
-#if defined(MACOSX) || defined(IPHONE)
-#include "CoreFoundation/CoreFoundation.h"
-#endif
-
-
#ifdef __PLAYSTATION2__
// for those replaced fopen/fread/etc functions
typedef unsigned long uint64;
@@ -59,39 +54,6 @@
//#define fsize(a) ps2_fsize(a) // not used -- and it is not a standard function either
#endif
-#ifdef __DS__
-
- // These functions replace the standard library functions of the same name.
- // As this header is included after the standard one, I have the chance to #define
- // all of these to my own code.
- //
- // A #define is the only way, as redefinig the functions would cause linker errors.
-
- // These functions need to be #undef'ed, as their original definition
- // in devkitarm is done with #includes (ugh!)
- #undef feof
- #undef clearerr
- //#undef getc
- //#undef ferror
-
- #include "backends/fs/ds/ds-fs.h"
-
-
- // Only functions used in the ScummVM source have been defined here!
- #define fopen(name, mode) DS::std_fopen(name, mode)
- #define fclose(handle) DS::std_fclose(handle)
- #define fread(ptr, size, items, file) DS::std_fread(ptr, size, items, file)
- #define fwrite(ptr, size, items, file) DS::std_fwrite(ptr, size, items, file)
- #define feof(handle) DS::std_feof(handle)
- #define ftell(handle) DS::std_ftell(handle)
- #define fseek(handle, offset, whence) DS::std_fseek(handle, offset, whence)
- #define clearerr(handle) DS::std_clearerr(handle)
- #define fflush(file) DS::std_fflush(file)
- #undef ferror
- #define ferror(handle) DS::std_ferror(handle)
-
-#endif
-
StdioStream::StdioStream(void *handle) : _handle(handle) {
assert(handle);
}