| 251 | #elif defined(_WIN32) && !defined(__DJGPP__) |
| 252 | # include <windows.h> |
| 253 | static int LONG_SEEK(FILE* file, __int64 offset, int origin) { |
| 254 | LARGE_INTEGER off; |
| 255 | DWORD method; |
| 256 | off.QuadPart = offset; |
| 257 | if (origin == SEEK_END) |
| 258 | method = FILE_END; |
| 259 | else if (origin == SEEK_CUR) |
| 260 | method = FILE_CURRENT; |
| 261 | else |
| 262 | method = FILE_BEGIN; |
| 263 | |
| 264 | if (SetFilePointerEx((HANDLE) _get_osfhandle(_fileno(file)), off, NULL, method)) |
| 265 | return 0; |
| 266 | else |
| 267 | return -1; |
| 268 | } |
| 269 | static __int64 LONG_TELL(FILE* file) { |
| 270 | LARGE_INTEGER off, newOff; |
| 271 | off.QuadPart = 0; |
no outgoing calls
no test coverage detected