[Scummvm-cvs-logs] SF.net SVN: scummvm: [29152] scummvm/trunk/common/file.cpp

marcus_c at users.sourceforge.net marcus_c at users.sourceforge.net
Wed Oct 3 23:50:21 CEST 2007


Revision: 29152
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29152&view=rev
Author:   marcus_c
Date:     2007-10-03 14:50:20 -0700 (Wed, 03 Oct 2007)

Log Message:
-----------
Provide dummy remove() function for DC...

Modified Paths:
--------------
    scummvm/trunk/common/file.cpp

Modified: scummvm/trunk/common/file.cpp
===================================================================
--- scummvm/trunk/common/file.cpp	2007-09-30 14:46:49 UTC (rev 29151)
+++ scummvm/trunk/common/file.cpp	2007-10-03 21:50:20 UTC (rev 29152)
@@ -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;


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