require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&EVENT2_KEYVALQ_STRUCT_H_INCLUDED_)) {
    eval 'sub EVENT2_KEYVALQ_STRUCT_H_INCLUDED_ () {1;}' unless defined(&EVENT2_KEYVALQ_STRUCT_H_INCLUDED_);
    if(defined(&__cplusplus)) {
    }
    unless(defined(&TAILQ_ENTRY)) {
	eval 'sub EVENT_DEFINED_TQENTRY_ () {1;}' unless defined(&EVENT_DEFINED_TQENTRY_);
	eval 'sub TAILQ_ENTRY {
	    my($type) = @_;
    	    eval q(\'struct struct\' { \'struct type\' * &tqe_next; \'struct type\' ** &tqe_prev; });
	}' unless defined(&TAILQ_ENTRY);
    }
    unless(defined(&TAILQ_HEAD)) {
	eval 'sub EVENT_DEFINED_TQHEAD_ () {1;}' unless defined(&EVENT_DEFINED_TQHEAD_);
	eval 'sub TAILQ_HEAD {
	    my($name, $type) = @_;
    	    eval q(\'struct name\' { \'struct type\' * &tqh_first; \'struct type\' ** &tqh_last; });
	}' unless defined(&TAILQ_HEAD);
    }
    if(defined(&EVENT_DEFINED_TQENTRY_)) {
	undef(&TAILQ_ENTRY) if defined(&TAILQ_ENTRY);
    }
    if(defined(&EVENT_DEFINED_TQHEAD_)) {
	undef(&TAILQ_HEAD) if defined(&TAILQ_HEAD);
    }
    if(defined(&__cplusplus)) {
    }
}
1;
