Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-08-27 09:55:47

0001 // Copyright 2011 Google Inc. All Rights Reserved.
0002 //
0003 // Redistribution and use in source and binary forms, with or without
0004 // modification, are permitted provided that the following conditions are
0005 // met:
0006 //
0007 //     * Redistributions of source code must retain the above copyright
0008 // notice, this list of conditions and the following disclaimer.
0009 //     * Redistributions in binary form must reproduce the above
0010 // copyright notice, this list of conditions and the following disclaimer
0011 // in the documentation and/or other materials provided with the
0012 // distribution.
0013 //     * Neither the name of Google Inc. nor the names of its
0014 // contributors may be used to endorse or promote products derived from
0015 // this software without specific prior written permission.
0016 //
0017 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0018 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0019 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0020 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0021 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0022 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0023 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0024 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0025 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0026 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0027 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0028 //
0029 // Various type stubs for the open-source version of Snappy.
0030 //
0031 // This file cannot include config.h, as it is included from snappy.h,
0032 // which is a public header. Instead, snappy-stubs-public.h is generated by
0033 // from snappy-stubs-public.h.in at configure time.
0034 
0035 #ifndef THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
0036 #define THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
0037 
0038 #include <cstddef>
0039 
0040 #if 1  // HAVE_SYS_UIO_H
0041 #include <sys/uio.h>
0042 #endif  // HAVE_SYS_UIO_H
0043 
0044 #define SNAPPY_MAJOR 1
0045 #define SNAPPY_MINOR 2
0046 #define SNAPPY_PATCHLEVEL 1
0047 #define SNAPPY_VERSION \
0048     ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
0049 
0050 namespace snappy {
0051 
0052 #if !1  // !HAVE_SYS_UIO_H
0053 // Windows does not have an iovec type, yet the concept is universally useful.
0054 // It is simple to define it ourselves, so we put it inside our own namespace.
0055 struct iovec {
0056   void* iov_base;
0057   size_t iov_len;
0058 };
0059 #endif  // !HAVE_SYS_UIO_H
0060 
0061 }  // namespace snappy
0062 
0063 #endif  // THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_