diff options
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) |