aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKostas Nakos2007-10-28 17:50:08 +0000
committerKostas Nakos2007-10-28 17:50:08 +0000
commitb93f68405b3c2b3c0aa20d265749d070045d387f (patch)
treea79c5bcddd18bbd681424bcf294c59016cb31fbb /common
parent31b77a48eee84d0943d31d806b51f2ed868ae9b9 (diff)
downloadscummvm-rg350-b93f68405b3c2b3c0aa20d265749d070045d387f.tar.gz
scummvm-rg350-b93f68405b3c2b3c0aa20d265749d070045d387f.tar.bz2
scummvm-rg350-b93f68405b3c2b3c0aa20d265749d070045d387f.zip
work around ce's lack of posix errno
svn-id: r29298
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp
index d20b90d571..40f1a296f3 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -139,6 +139,13 @@
#define remove(name) ((errno = EROFS), -1)
#endif
+#ifdef _WIN32_WCE
+ #define ENOENT 2
+ #define EACCES 13
+ static int errno;
+ #define remove(x) ( errno = (remove(x) == 0) ? 0 : EACCES )
+#endif
+
namespace Common {
typedef HashMap<String, int, CaseSensitiveString_Hash, CaseSensitiveString_EqualTo> StringIntMap;