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

Side by Side Diff: third_party/snappy/mac/snappy-stubs-public.h

Issue 2712273002: DEPS: Upgrade snappy to 1.1.4. (Closed)
Patch Set: Buildbot fix, take 2. Created 3 years, 9 months 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/snappy/mac/config.h ('k') | third_party/snappy/win32/config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 Google Inc. All Rights Reserved. 1 // Copyright 2011 Google Inc. All Rights Reserved.
2 // Author: sesse@google.com (Steinar H. Gunderson) 2 // Author: sesse@google.com (Steinar H. Gunderson)
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 // 29 //
30 // Various type stubs for the open-source version of Snappy. 30 // Various type stubs for the open-source version of Snappy.
31 // 31 //
32 // This file cannot include config.h, as it is included from snappy.h, 32 // This file cannot include config.h, as it is included from snappy.h,
33 // which is a public header. Instead, snappy-stubs-public.h is generated by 33 // which is a public header. Instead, snappy-stubs-public.h is generated by
34 // from snappy-stubs-public.h.in at configure time. 34 // from snappy-stubs-public.h.in at configure time.
35 35
36 #ifndef UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_ 36 #ifndef THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
37 #define UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_ 37 #define THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
38 38
39 #if 1 39 #if 1
40 #include <stdint.h> 40 #include <stdint.h>
41 #endif 41 #endif
42 42
43 #if 1 43 #if 1
44 #include <stddef.h> 44 #include <stddef.h>
45 #endif 45 #endif
46 46
47 #if 1 47 #if 1
48 #include <sys/uio.h> 48 #include <sys/uio.h>
49 #endif 49 #endif
50 50
51 #define SNAPPY_MAJOR 1 51 #define SNAPPY_MAJOR 1
52 #define SNAPPY_MINOR 1 52 #define SNAPPY_MINOR 1
53 #define SNAPPY_PATCHLEVEL 0 53 #define SNAPPY_PATCHLEVEL 4
54 #define SNAPPY_VERSION \ 54 #define SNAPPY_VERSION \
55 ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL) 55 ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
56 56
57 #include <string> 57 #include <string>
58 58
59 namespace snappy { 59 namespace snappy {
60 60
61 #if 1 61 #if 1
62 typedef int8_t int8; 62 typedef int8_t int8;
63 typedef uint8_t uint8; 63 typedef uint8_t uint8;
(...skipping 26 matching lines...) Expand all
90 // Windows does not have an iovec type, yet the concept is universally useful. 90 // Windows does not have an iovec type, yet the concept is universally useful.
91 // It is simple to define it ourselves, so we put it inside our own namespace. 91 // It is simple to define it ourselves, so we put it inside our own namespace.
92 struct iovec { 92 struct iovec {
93 void* iov_base; 93 void* iov_base;
94 size_t iov_len; 94 size_t iov_len;
95 }; 95 };
96 #endif 96 #endif
97 97
98 } // namespace snappy 98 } // namespace snappy
99 99
100 #endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_ 100 #endif // THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
OLDNEW
« no previous file with comments | « third_party/snappy/mac/config.h ('k') | third_party/snappy/win32/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698