diff options
author | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-12 20:50:00 +0000 |
---|---|---|
committer | Martin Ebourne <martin@ebourne.me.uk> | 2005-12-12 20:50:00 +0000 |
commit | 3bedf8846f4d7a5cb38276b274662d62a36dcd52 (patch) | |
tree | 9d51de8b0f3d06ba6549a5a1958e52f592343140 /lib/common/IOStream.cpp | |
parent | 81d8eda2419e7a23088a98cdfc52a305c9ceac0d (diff) |
Marged chris/win32/merge/07-win32-fixes at r210 to trunk
Diffstat (limited to 'lib/common/IOStream.cpp')
-rwxr-xr-x | lib/common/IOStream.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/common/IOStream.cpp b/lib/common/IOStream.cpp index 024eefcc..3c7be561 100755 --- a/lib/common/IOStream.cpp +++ b/lib/common/IOStream.cpp @@ -105,6 +105,17 @@ int IOStream::ConvertSeekTypeToOSWhence(int SeekType) int ostype = SEEK_SET; switch(SeekType) { +#ifdef WIN32 + case SeekType_Absolute: + ostype = FILE_BEGIN; + break; + case SeekType_Relative: + ostype = FILE_CURRENT; + break; + case SeekType_End: + ostype = FILE_END; + break; +#else // ! WIN32 case SeekType_Absolute: ostype = SEEK_SET; break; @@ -114,6 +125,7 @@ int IOStream::ConvertSeekTypeToOSWhence(int SeekType) case SeekType_End: ostype = SEEK_END; break; +#endif // WIN32 default: THROW_EXCEPTION(CommonException, IOStreamBadSeekType) |