require '_h2ph_pre.ph';

no warnings 'redefine';

if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : 0)) {
    eval 'sub change_sign16 () { &change_sign16_le;}' unless defined(&change_sign16);
    eval 'sub change_sign16_swap_bytes () { &swap_bytes_change_sign16_le;}' unless defined(&change_sign16_swap_bytes);
    eval 'sub swap_bytes_change_sign16 () { &swap_bytes_change_sign16_le;}' unless defined(&swap_bytes_change_sign16);
    eval 'sub linear8_to_linear16 () { &linear8_to_linear16_le;}' unless defined(&linear8_to_linear16);
    eval 'sub ulinear8_to_linear16 () { &ulinear8_to_linear16_le;}' unless defined(&ulinear8_to_linear16);
    eval 'sub linear8_to_linear16_mts () { &linear8_to_linear16_le_mts;}' unless defined(&linear8_to_linear16_mts);
    eval 'sub ulinear8_to_linear16_mts () { &ulinear8_to_linear16_le_mts;}' unless defined(&ulinear8_to_linear16_mts);
    eval 'sub change_sign16_mts () { &change_sign16_le_mts;}' unless defined(&change_sign16_mts);
    eval 'sub change_sign16_swap_bytes_mts () { &change_sign16_swap_bytes_le_mts;}' unless defined(&change_sign16_swap_bytes_mts);
} else {
    eval 'sub change_sign16 () { &change_sign16_be;}' unless defined(&change_sign16);
    eval 'sub change_sign16_swap_bytes () { &swap_bytes_change_sign16_be;}' unless defined(&change_sign16_swap_bytes);
    eval 'sub swap_bytes_change_sign16 () { &swap_bytes_change_sign16_be;}' unless defined(&swap_bytes_change_sign16);
    eval 'sub linear8_to_linear16 () { &linear8_to_linear16_be;}' unless defined(&linear8_to_linear16);
    eval 'sub ulinear8_to_linear16 () { &ulinear8_to_linear16_be;}' unless defined(&ulinear8_to_linear16);
    eval 'sub linear8_to_linear16_mts () { &linear8_to_linear16_be_mts;}' unless defined(&linear8_to_linear16_mts);
    eval 'sub ulinear8_to_linear16_mts () { &ulinear8_to_linear16_be_mts;}' unless defined(&ulinear8_to_linear16_mts);
    eval 'sub change_sign16_mts () { &change_sign16_be_mts;}' unless defined(&change_sign16_mts);
    eval 'sub change_sign16_swap_bytes_mts () { &change_sign16_swap_bytes_be_mts;}' unless defined(&change_sign16_swap_bytes_mts);
}
1;
