| OLD | NEW |
| 1 /* gzlib.c -- zlib functions common to reading and writing gzip files | 1 /* gzlib.c -- zlib functions common to reading and writing gzip files |
| 2 * Copyright (C) 2004, 2010 Mark Adler | 2 * Copyright (C) 2004, 2010 Mark Adler |
| 3 * For conditions of distribution and use, see copyright notice in zlib.h | 3 * For conditions of distribution and use, see copyright notice in zlib.h |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 #include "gzguts.h" | 6 #include "gzguts.h" |
| 7 | 7 |
| 8 #if defined(_WIN32) && !defined(__BORLANDC__) | 8 #if defined(_WIN32) && !defined(__BORLANDC__) |
| 9 # define LSEEK _lseeki64 | 9 # define LSEEK (z_off64_t)_lseeki64 |
| 10 #elif defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 | 10 #elif defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 |
| 11 # define LSEEK lseek64 | 11 # define LSEEK lseek64 |
| 12 #else | 12 #else |
| 13 # define LSEEK lseek | 13 # define LSEEK lseek |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 /* Local functions */ | 16 /* Local functions */ |
| 17 local void gz_reset OF((gz_statep)); | 17 local void gz_reset OF((gz_statep)); |
| 18 local gzFile gz_open OF((const char *, int, const char *)); | 18 local gzFile gz_open OF((const char *, int, const char *)); |
| 19 | 19 |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 530 |
| 531 p = 1; | 531 p = 1; |
| 532 do { | 532 do { |
| 533 q = p; | 533 q = p; |
| 534 p <<= 1; | 534 p <<= 1; |
| 535 p++; | 535 p++; |
| 536 } while (p > q); | 536 } while (p > q); |
| 537 return q >> 1; | 537 return q >> 1; |
| 538 } | 538 } |
| 539 #endif | 539 #endif |
| OLD | NEW |