work around ce's lack of posix errno

svn-id: r29298
This commit is contained in:
Kostas Nakos 2007-10-28 17:50:08 +00:00
parent 31b77a48ee
commit b93f68405b

View File

@ -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;