require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&EVENT2_TAG_COMPAT_H_INCLUDED_)) {
    eval 'sub EVENT2_TAG_COMPAT_H_INCLUDED_ () {1;}' unless defined(&EVENT2_TAG_COMPAT_H_INCLUDED_);
    eval 'sub encode_int {
        my($evbuf, $number) = @_;
	    eval q( &evtag_encode_int(($evbuf), ($number)));
    }' unless defined(&encode_int);
    eval 'sub encode_int64 {
        my($evbuf, $number) = @_;
	    eval q( &evtag_encode_int64(($evbuf), ($number)));
    }' unless defined(&encode_int64);
}
1;
