diff options
author | Filippos Karapetis | 2007-09-18 23:05:33 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-09-18 23:05:33 +0000 |
commit | d6dbb98bc9770fc3af3fc0ef3c4792047f3c689c (patch) | |
tree | 818aa99ad2116b79ef8aeceb1f940cb2e882bf68 /backends | |
parent | ab8997f64d069d28c33aca830a6b0574bf6fcda3 (diff) | |
download | scummvm-rg350-d6dbb98bc9770fc3af3fc0ef3c4792047f3c689c.tar.gz scummvm-rg350-d6dbb98bc9770fc3af3fc0ef3c4792047f3c689c.tar.bz2 scummvm-rg350-d6dbb98bc9770fc3af3fc0ef3c4792047f3c689c.zip |
Fixed compilation under MSVC8
svn-id: r28951
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/windows/windows-fs.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index da9fc59c35..c7f500f108 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -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. * |