diff options
Diffstat (limited to 'common/file.cpp')
-rw-r--r-- | common/file.cpp | 7 |
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; |