chromium/third_party/zlib/chromeconf.h

/* Copyright 2017 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

#ifndef THIRD_PARTY_ZLIB_CHROMECONF_H_
#define THIRD_PARTY_ZLIB_CHROMECONF_H_

#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(ZLIB_IMPLEMENTATION)
#define ZEXTERN
#else
#define ZEXTERN
#endif
#elif defined(ZLIB_IMPLEMENTATION)
#define ZEXTERN
#endif
#endif

/* Rename all zlib names with a Cr_z_ prefix. This is based on the Z_PREFIX
 * option from zconf.h, but with a custom prefix. Where zconf.h would rename
 * both a macro and its underscore-suffixed internal implementation (such as
 * deflateInit2 and deflateInit2_), only the implementation is renamed here.
 * The Byte type is also omitted.
 *
 * To generate this list, run
 * sed -rn -e 's/^# *define +([^ ]+) +(z_[^ ]+)$/#define \1 Cr_\2/p' zconf.h
 * (use -E instead of -r on macOS).
 *
 * gzread is also addressed by modifications in gzread.c and zlib.h. */

#define Z_CR_PREFIX_SET

#define _dist_code
#define _length_code
#define _tr_align
#define _tr_flush_bits
#define _tr_flush_block
#define _tr_init
#define _tr_stored_block
#define _tr_tally
#define adler32
#define adler32_combine
#define adler32_combine64
#define adler32_z
#define compress
#define compress2
#define compressBound
#define crc32
#define crc32_combine
#define crc32_combine64
#define crc32_combine_gen64
#define crc32_combine_gen
#define crc32_combine_op
#define crc32_z
#define deflate
#define deflateBound
#define deflateCopy
#define deflateEnd
#define deflateGetDictionary
/* #undef deflateInit */
/* #undef deflateInit2 */
#define deflateInit2_
#define deflateInit_
#define deflateParams
#define deflatePending
#define deflatePrime
#define deflateReset
#define deflateResetKeep
#define deflateSetDictionary
#define deflateSetHeader
#define deflateTune
#define deflate_copyright
#define get_crc_table
#define gz_error
#define gz_intmax
#define gz_strwinerror
#define gzbuffer
#define gzclearerr
#define gzclose
#define gzclose_r
#define gzclose_w
#define gzdirect
#define gzdopen
#define gzeof
#define gzerror
#define gzflush
#define gzfread
#define gzfwrite
#define gzgetc Cr_z_gzgetc
#define gzgetc_
#define gzgets
#define gzoffset
#define gzoffset64
#define gzopen
#define gzopen64
#define gzopen_w
#define gzprintf
#define gzputc
#define gzputs
#define gzread
#define gzrewind
#define gzseek
#define gzseek64
#define gzsetparams
#define gztell
#define gztell64
#define gzungetc
#define gzvprintf
#define gzwrite
#define inflate
#define inflateBack
#define inflateBackEnd
/* #undef inflateBackInit */
#define inflateBackInit_
#define inflateCodesUsed
#define inflateCopy
#define inflateEnd
#define inflateGetDictionary
#define inflateGetHeader
/* #undef inflateInit */
/* #undef inflateInit2 */
#define inflateInit2_
#define inflateInit_
#define inflateMark
#define inflatePrime
#define inflateReset
#define inflateReset2
#define inflateResetKeep
#define inflateSetDictionary
#define inflateSync
#define inflateSyncPoint
#define inflateUndermine
#define inflateValidate
#define inflate_copyright
#define inflate_fast
#define inflate_table
#define uncompress
#define uncompress2
#define zError
#define zcalloc
#define zcfree
#define zlibCompileFlags
#define zlibVersion
/* #undef Byte */
#define Bytef
#define alloc_func
#define charf
#define free_func
#define gzFile
#define gz_header
#define gz_headerp
#define in_func
#define intf
#define out_func
#define uInt
#define uIntf
#define uLong
#define uLongf
#define voidp
#define voidpc
#define voidpf
#define gz_header_s
/* #undef internal_state */
/* #undef z_off64_t */

/* An exported symbol that isn't handled by Z_PREFIX in zconf.h */
#define z_errmsg

/* Symbols added in simd.patch */
#define copy_with_crc
#define crc_finalize
#define crc_fold_512to32
#define crc_fold_copy
#define crc_fold_init
#define crc_reset
#define fill_window_sse
#define deflate_read_buf
#define x86_check_features
#define x86_cpu_enable_simd

/* Symbols added by adler_simd.c */
#define adler32_simd_
#define x86_cpu_enable_ssse3

/* Symbols added by contrib/optimizations/inffast_chunk */
#define inflate_fast_chunk_

/* Symbols added by crc32_simd.c */
#define crc32_sse42_simd_

/* Symbols added by armv8_crc32 */
#define arm_cpu_enable_crc32
#define arm_cpu_enable_pmull
#define arm_check_features
#define armv8_crc32_little
#define armv8_crc32_pmull_little

/* Symbols added by cpu_features.c */
#define cpu_check_features
#define x86_cpu_enable_sse2

#endif /* THIRD_PARTY_ZLIB_CHROMECONF_H_ */