require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_I386_MOUSE_H_)) {
    eval 'sub _I386_MOUSE_H_ () {1;}' unless defined(&_I386_MOUSE_H_);
    eval 'sub BUTSTATMASK () {0x7;}' unless defined(&BUTSTATMASK);
    eval 'sub BUTCHNGMASK () {0x38;}' unless defined(&BUTCHNGMASK);
    eval 'sub BUT3STAT () {0x1;}' unless defined(&BUT3STAT);
    eval 'sub BUT2STAT () {0x2;}' unless defined(&BUT2STAT);
    eval 'sub BUT1STAT () {0x4;}' unless defined(&BUT1STAT);
    eval 'sub BUT3CHNG () {0x8;}' unless defined(&BUT3CHNG);
    eval 'sub BUT2CHNG () {0x10;}' unless defined(&BUT2CHNG);
    eval 'sub BUT1CHNG () {0x20;}' unless defined(&BUT1CHNG);
    eval 'sub MOVEMENT () {0x40;}' unless defined(&MOVEMENT);
    eval 'sub MOUSEIOC () {(ord(\'M\')<<8);}' unless defined(&MOUSEIOC);
    eval 'sub MOUSEIOCREAD () {( &MOUSEIOC|60);}' unless defined(&MOUSEIOCREAD);
    eval 'sub MOUSEIOCSRAW () {( &MOUSEIOC|61);}' unless defined(&MOUSEIOCSRAW);
    eval 'sub MOUSEIOCSCOOKED () {( &MOUSEIOC|62);}' unless defined(&MOUSEIOCSCOOKED);
}
1;
