Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/zlib/gzlib.c

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/zlib/google/zip_reader.cc ('k') | tools/android/adb_remote_setup.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/zlib/google/zip_reader.cc ('k') | tools/android/adb_remote_setup.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698