require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_NETCAN_CAN_LINK_H)) {
    eval 'sub _NETCAN_CAN_LINK_H () {1;}' unless defined(&_NETCAN_CAN_LINK_H);
    eval 'sub CANGLINKTIMECAP () {0;}' unless defined(&CANGLINKTIMECAP);
    eval 'sub CANGLINKTIMINGS () {1;}' unless defined(&CANGLINKTIMINGS);
    eval 'sub CANSLINKTIMINGS () {2;}' unless defined(&CANSLINKTIMINGS);
    eval 'sub CAN_LINKMODE_LOOPBACK () {0x1;}' unless defined(&CAN_LINKMODE_LOOPBACK);
    eval 'sub CAN_LINKMODE_LISTENONLY () {0x2;}' unless defined(&CAN_LINKMODE_LISTENONLY);
    eval 'sub CAN_LINKMODE_3SAMPLES () {0x4;}' unless defined(&CAN_LINKMODE_3SAMPLES);
    eval 'sub CAN_LINKMODE_PRESUME_ACK () {0x8;}' unless defined(&CAN_LINKMODE_PRESUME_ACK);
    eval 'sub CAN_IFFBITS () {"\\020\\1LOOPBACK\\2LISTENONLY\\3TRIPLESAMPLE\\4PRESUMEACK";}' unless defined(&CAN_IFFBITS);
    eval 'sub CANGLINKMODE () {3;}' unless defined(&CANGLINKMODE);
    eval 'sub CANSLINKMODE () {4;}' unless defined(&CANSLINKMODE);
    eval 'sub CANCLINKMODE () {5;}' unless defined(&CANCLINKMODE);
}
1;
