#include "stdafx.h" #include #define off_t __int64 /* _MSC_VER 1200 Visual C++ 6.0 1310 Visual C++ .NET 2003 1400 Visual C++ 2005 */ #if (_MSC_VER >= 1310) int fseeko( FILE *stream, off_t offset, int origin ) { return _fseeki64(stream,offset,origin); } #else int fseeko( FILE *stream, off_t offset, int origin ) { fflush(stream); if (_lseeki64(_fileno(stream),offset,origin)==-1L) return -1; else return 0; } #endif