require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SS_MUSTEK_H_)) {
    eval 'sub _SS_MUSTEK_H_ () {1;}' unless defined(&_SS_MUSTEK_H_);
    eval 'sub MUSTEK_INCH_SPEC () {1;}' unless defined(&MUSTEK_INCH_SPEC);
    eval 'sub MUSTEK_WINDOWS () {0;}' unless defined(&MUSTEK_WINDOWS);
    eval 'sub MUSTEK_SET_WINDOW () {0x4;}' unless defined(&MUSTEK_SET_WINDOW);
    eval 'sub MUSTEK_READ () {0x8;}' unless defined(&MUSTEK_READ);
    eval 'sub MUSTEK_GET_STATUS () {0xf;}' unless defined(&MUSTEK_GET_STATUS);
    eval 'sub MUSTEK_MODE_SELECT () {0x15;}' unless defined(&MUSTEK_MODE_SELECT);
    eval 'sub MUSTEK_ADF () {0x10;}' unless defined(&MUSTEK_ADF);
    eval 'sub MUSTEK_START_STOP () {0x1b;}' unless defined(&MUSTEK_START_STOP);
    eval 'sub MUSTEK_LUT () {0x55;}' unless defined(&MUSTEK_LUT);
    eval 'sub MUSTEK_UNIT_INCHES () {0x;}' unless defined(&MUSTEK_UNIT_INCHES);
    eval 'sub MUSTEK_UNIT_PIXELS () {0x8;}' unless defined(&MUSTEK_UNIT_PIXELS);
    if(defined(&MUSTEK_INCH_SPEC)) {
	eval 'sub MUSTEK_UNIT_SPEC () { &MUSTEK_UNIT_INCHES;}' unless defined(&MUSTEK_UNIT_SPEC);
    } else {
	eval 'sub MUSTEK_UNIT_SPEC () { &MUSTEK_UNIT_PIXELS;}' unless defined(&MUSTEK_UNIT_SPEC);
    }
    eval 'sub MUSTEK_LINEART_BACKGROUND () {0x;}' unless defined(&MUSTEK_LINEART_BACKGROUND);
    eval 'sub MUSTEK_HALFTONE_BACKGROUND () {0x1;}' unless defined(&MUSTEK_HALFTONE_BACKGROUND);
    if((defined(&MUSTEK_WINDOWS) ? &MUSTEK_WINDOWS : 0) >= 1) {
	eval 'sub MUSTEK_WINDOW_MASK () {0x80;}' unless defined(&MUSTEK_WINDOW_MASK);
    }
    if((defined(&MUSTEK_WINDOWS) ? &MUSTEK_WINDOWS : 0) >= 2) {
    }
    if((defined(&MUSTEK_WINDOWS) ? &MUSTEK_WINDOWS : 0) >= 3) {
    }
    if((defined(&MUSTEK_WINDOWS) ? &MUSTEK_WINDOWS : 0) >= 4) {
    }
    eval 'sub MUSTEK_READY () {0;}' unless defined(&MUSTEK_READY);
    eval 'sub MUSTEK_BUSY () {-1;}' unless defined(&MUSTEK_BUSY);
    eval 'sub MUSTEK_MODE_MASK () {0x83;}' unless defined(&MUSTEK_MODE_MASK);
    eval 'sub MUSTEK_HT_PATTERN_BUILTIN () {0x;}' unless defined(&MUSTEK_HT_PATTERN_BUILTIN);
    eval 'sub MUSTEK_HT_PATTERN_DOWNLOADED () {0x10;}' unless defined(&MUSTEK_HT_PATTERN_DOWNLOADED);
    eval 'sub MUSTEK_SCAN_STOP () {0x;}' unless defined(&MUSTEK_SCAN_STOP);
    eval 'sub MUSTEK_SCAN_START () {0x1;}' unless defined(&MUSTEK_SCAN_START);
    eval 'sub MUSTEK_GRAY_FILTER () {0x;}' unless defined(&MUSTEK_GRAY_FILTER);
    eval 'sub MUSTEK_RED_FILTER () {0x8;}' unless defined(&MUSTEK_RED_FILTER);
    eval 'sub MUSTEK_GREEN_FILTER () {0x10;}' unless defined(&MUSTEK_GREEN_FILTER);
    eval 'sub MUSTEK_BLUE_FILTER () {0x18;}' unless defined(&MUSTEK_BLUE_FILTER);
    eval 'sub MUSTEK_GRAY_MODE () {0x40;}' unless defined(&MUSTEK_GRAY_MODE);
    eval 'sub MUSTEK_BIT_MODE () {0x;}' unless defined(&MUSTEK_BIT_MODE);
    eval 'sub MUSTEK_RES_STEP_1 () {0x;}' unless defined(&MUSTEK_RES_STEP_1);
    eval 'sub MUSTEK_RES_STEP_10 () {0x80;}' unless defined(&MUSTEK_RES_STEP_10);
}
1;
