aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMarcus Comstedt2007-10-03 21:50:20 +0000
committerMarcus Comstedt2007-10-03 21:50:20 +0000
commit151e0cfa050b0ecfa7ff60f3bc1a99cc9ebef401 (patch)
tree541d8b6aaa68fb5112230ccf0ed7938e0357a901 /common
parent8ced5d58dfa05f8903337297d962ad24ca46cf53 (diff)
downloadscummvm-rg350-151e0cfa050b0ecfa7ff60f3bc1a99cc9ebef401.tar.gz
scummvm-rg350-151e0cfa050b0ecfa7ff60f3bc1a99cc9ebef401.tar.bz2
scummvm-rg350-151e0cfa050b0ecfa7ff60f3bc1a99cc9ebef401.zip
Provide dummy remove() function for DC...
svn-id: r29152
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp
index f7e4177e56..af91816cd7 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -132,6 +132,11 @@
#define clearerr(handle) symbian_clearerr(handle)
#endif
+#ifdef __DC__
+ /* Can't remove files from CD-ROM... */
+ #define remove(name) ((errno = EROFS), -1)
+#endif
+
namespace Common {
typedef HashMap<String, int, CaseSensitiveString_Hash, CaseSensitiveString_EqualTo> StringIntMap;