[Scummvm-cvs-logs] SF.net SVN: scummvm: [28951] scummvm/trunk/backends/fs/windows/windows-fs. cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Sep 19 01:05:34 CEST 2007
Revision: 28951
http://scummvm.svn.sourceforge.net/scummvm/?rev=28951&view=rev
Author: thebluegr
Date: 2007-09-18 16:05:33 -0700 (Tue, 18 Sep 2007)
Log Message:
-----------
Fixed compilation under MSVC8
Modified Paths:
--------------
scummvm/trunk/backends/fs/windows/windows-fs.cpp
Modified: scummvm/trunk/backends/fs/windows/windows-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/windows/windows-fs.cpp 2007-09-18 21:34:57 UTC (rev 28950)
+++ scummvm/trunk/backends/fs/windows/windows-fs.cpp 2007-09-18 23:05:33 UTC (rev 28951)
@@ -37,6 +37,21 @@
#endif
#include <tchar.h>
+// F_OK, R_OK and W_OK are not defined under MSVC, so we define them here
+// For more information on the modes used by MSVC, check:
+// http://msdn2.microsoft.com/en-us/library/1w06ktdy(VS.80).aspx
+#ifndef F_OK
+#define F_OK 0
+#endif
+
+#ifndef R_OK
+#define R_OK 4
+#endif
+
+#ifndef W_OK
+#define W_OK 2
+#endif
+
/**
* Implementation of the ScummVM file system API based on Windows API.
*
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