require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&ZLIB_H)) {
    eval 'sub ZLIB_H () {1;}' unless defined(&ZLIB_H);
    require 'zconf.ph';
    if(defined(&__cplusplus)) {
    }
    eval 'sub ZLIB_VERSION () {"1.2.3";}' unless defined(&ZLIB_VERSION);
    eval 'sub ZLIB_VERNUM () {0x1230;}' unless defined(&ZLIB_VERNUM);
    eval 'sub Z_NO_FLUSH () {0;}' unless defined(&Z_NO_FLUSH);
    eval 'sub Z_PARTIAL_FLUSH () {1;}' unless defined(&Z_PARTIAL_FLUSH);
    eval 'sub Z_SYNC_FLUSH () {2;}' unless defined(&Z_SYNC_FLUSH);
    eval 'sub Z_FULL_FLUSH () {3;}' unless defined(&Z_FULL_FLUSH);
    eval 'sub Z_FINISH () {4;}' unless defined(&Z_FINISH);
    eval 'sub Z_BLOCK () {5;}' unless defined(&Z_BLOCK);
    eval 'sub Z_OK () {0;}' unless defined(&Z_OK);
    eval 'sub Z_STREAM_END () {1;}' unless defined(&Z_STREAM_END);
    eval 'sub Z_NEED_DICT () {2;}' unless defined(&Z_NEED_DICT);
    eval 'sub Z_ERRNO () {(-1);}' unless defined(&Z_ERRNO);
    eval 'sub Z_STREAM_ERROR () {(-2);}' unless defined(&Z_STREAM_ERROR);
    eval 'sub Z_DATA_ERROR () {(-3);}' unless defined(&Z_DATA_ERROR);
    eval 'sub Z_MEM_ERROR () {(-4);}' unless defined(&Z_MEM_ERROR);
    eval 'sub Z_BUF_ERROR () {(-5);}' unless defined(&Z_BUF_ERROR);
    eval 'sub Z_VERSION_ERROR () {(-6);}' unless defined(&Z_VERSION_ERROR);
    eval 'sub Z_NO_COMPRESSION () {0;}' unless defined(&Z_NO_COMPRESSION);
    eval 'sub Z_BEST_SPEED () {1;}' unless defined(&Z_BEST_SPEED);
    eval 'sub Z_BEST_COMPRESSION () {9;}' unless defined(&Z_BEST_COMPRESSION);
    eval 'sub Z_DEFAULT_COMPRESSION () {(-1);}' unless defined(&Z_DEFAULT_COMPRESSION);
    eval 'sub Z_FILTERED () {1;}' unless defined(&Z_FILTERED);
    eval 'sub Z_HUFFMAN_ONLY () {2;}' unless defined(&Z_HUFFMAN_ONLY);
    eval 'sub Z_RLE () {3;}' unless defined(&Z_RLE);
    eval 'sub Z_FIXED () {4;}' unless defined(&Z_FIXED);
    eval 'sub Z_DEFAULT_STRATEGY () {0;}' unless defined(&Z_DEFAULT_STRATEGY);
    eval 'sub Z_BINARY () {0;}' unless defined(&Z_BINARY);
    eval 'sub Z_TEXT () {1;}' unless defined(&Z_TEXT);
    eval 'sub Z_ASCII () { &Z_TEXT;}' unless defined(&Z_ASCII);
    eval 'sub Z_UNKNOWN () {2;}' unless defined(&Z_UNKNOWN);
    eval 'sub Z_DEFLATED () {8;}' unless defined(&Z_DEFLATED);
    eval 'sub Z_NULL () {0;}' unless defined(&Z_NULL);
    eval 'sub zlib_version () { &zlibVersion();}' unless defined(&zlib_version);
    eval 'sub deflateInit {
        my($strm, $level) = @_;
	    eval q( &deflateInit_(($strm), ($level),  &ZLIB_VERSION, $sizeof{ &z_stream}));
    }' unless defined(&deflateInit);
    eval 'sub inflateInit {
        my($strm) = @_;
	    eval q( &inflateInit_(($strm),  &ZLIB_VERSION, $sizeof{ &z_stream}));
    }' unless defined(&inflateInit);
    eval 'sub deflateInit2 {
        my($strm, $level, $method, $windowBits, $memLevel, $strategy) = @_;
	    eval q( &deflateInit2_(($strm),($level),($method),($windowBits),($memLevel), ($strategy),  &ZLIB_VERSION, $sizeof{ &z_stream}));
    }' unless defined(&deflateInit2);
    eval 'sub inflateInit2 {
        my($strm, $windowBits) = @_;
	    eval q( &inflateInit2_(($strm), ($windowBits),  &ZLIB_VERSION, $sizeof{ &z_stream}));
    }' unless defined(&inflateInit2);
    eval 'sub inflateBackInit {
        my($strm, $windowBits, $window) = @_;
	    eval q( &inflateBackInit_(($strm), ($windowBits), ($window),  &ZLIB_VERSION, $sizeof{ &z_stream}));
    }' unless defined(&inflateBackInit);
    if(!defined( &ZUTIL_H)  && !defined( &NO_DUMMY_DECL)) {
    }
    if(defined(&__cplusplus)) {
    }
}
1;
