[Scummvm-cvs-logs] SF.net SVN: scummvm: [29298] scummvm/trunk/common/file.cpp
knakos at users.sourceforge.net
knakos at users.sourceforge.net
Sun Oct 28 18:50:08 CET 2007
Revision: 29298
http://scummvm.svn.sourceforge.net/scummvm/?rev=29298&view=rev
Author: knakos
Date: 2007-10-28 10:50:08 -0700 (Sun, 28 Oct 2007)
Log Message:
-----------
work around ce's lack of posix errno
Modified Paths:
--------------
scummvm/trunk/common/file.cpp
Modified: scummvm/trunk/common/file.cpp
===================================================================
--- scummvm/trunk/common/file.cpp 2007-10-28 17:45:34 UTC (rev 29297)
+++ scummvm/trunk/common/file.cpp 2007-10-28 17:50:08 UTC (rev 29298)
@@ -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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list