require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&EVENT2_RPC_STRUCT_H_INCLUDED_)) {
    eval 'sub EVENT2_RPC_STRUCT_H_INCLUDED_ () {1;}' unless defined(&EVENT2_RPC_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);
    }
    eval 'sub EVRPC_STATUS_ERR_NONE () {0;}' unless defined(&EVRPC_STATUS_ERR_NONE);
    eval 'sub EVRPC_STATUS_ERR_TIMEOUT () {1;}' unless defined(&EVRPC_STATUS_ERR_TIMEOUT);
    eval 'sub EVRPC_STATUS_ERR_BADPAYLOAD () {2;}' unless defined(&EVRPC_STATUS_ERR_BADPAYLOAD);
    eval 'sub EVRPC_STATUS_ERR_UNSTARTED () {3;}' unless defined(&EVRPC_STATUS_ERR_UNSTARTED);
    eval 'sub EVRPC_STATUS_ERR_HOOKABORTED () {4;}' unless defined(&EVRPC_STATUS_ERR_HOOKABORTED);
    if(defined(&EVENT_DEFINED_TQENTRY_)) {
	undef(&TAILQ_ENTRY) if defined(&TAILQ_ENTRY);
    }
    if(defined(&__cplusplus)) {
    }
}
1;
