From: ShadowFlare Date: Wed, 16 Jan 2013 05:48:56 +0000 (-0700) Subject: Fix compiling on VC6 X-Git-Url: https://sfsrealm.hopto.org/projects/?a=commitdiff_plain;h=a9570bb3ec72a45f97b433a43807de356120625a;p=SFmpqapi.git Fix compiling on VC6 --- diff --git a/SFUtil.cpp b/SFUtil.cpp old mode 100644 new mode 100755 index 8df5505..c5af68e --- a/SFUtil.cpp +++ b/SFUtil.cpp @@ -60,7 +60,11 @@ Int64 SFSetFilePointer(HANDLE hFile, Int64 nDistance, UInt32 dwMoveMethod) FilePos.i32[0] = ::SetFilePointer(hFile, FilePos.i32[0], &FilePos.i32[1], dwMoveMethod); +#ifdef INVALID_SET_FILE_POINTER if (FilePos.ui32[0] == INVALID_SET_FILE_POINTER) { +#else + if (FilePos.ui32[0] == INVALID_FILE_SIZE) { +#endif if (::GetLastError() != NO_ERROR) return -1; }