require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&BOOTSIG0)) {
    sub BOOTSIG0 () {	0x55;}
}
unless(defined(&BOOTSIG1)) {
    sub BOOTSIG1 () {	0xaa;}
}
unless(defined(&EXBOOTSIG)) {
    sub EXBOOTSIG () {	0x29;}
}
unless(defined(&BOOTSIG0)) {
    sub BOOTSIG0 () {	0x55;}
}
unless(defined(&BOOTSIG1)) {
    sub BOOTSIG1 () {	0xaa;}
}
unless(defined(&BOOTSIG0)) {
    sub BOOTSIG0 () {	0x55;}
}
unless(defined(&BOOTSIG1)) {
    sub BOOTSIG1 () {	0xaa;}
}
unless(defined(&BOOTSIG2)) {
    sub BOOTSIG2 () {	0;}
}
unless(defined(&BOOTSIG3)) {
    sub BOOTSIG3 () {	0;}
}
if(0) {
    eval 'sub bsBytesPerSec () { ($bsBPB->{bpbBytesPerSec});}' unless defined(&bsBytesPerSec);
    eval 'sub bsSectPerClust () { ($bsBPB->{bpbSectPerClust});}' unless defined(&bsSectPerClust);
    eval 'sub bsResSectors () { ($bsBPB->{bpbResSectors});}' unless defined(&bsResSectors);
    eval 'sub bsFATS () { ($bsBPB->{bpbFATS});}' unless defined(&bsFATS);
    eval 'sub bsRootDirEnts () { ($bsBPB->{bpbRootDirEnts});}' unless defined(&bsRootDirEnts);
    eval 'sub bsSectors () { ($bsBPB->{bpbSectors});}' unless defined(&bsSectors);
    eval 'sub bsMedia () { ($bsBPB->{bpbMedia});}' unless defined(&bsMedia);
    eval 'sub bsFATsecs () { ($bsBPB->{bpbFATsecs});}' unless defined(&bsFATsecs);
    eval 'sub bsSectPerTrack () { ($bsBPB->{bpbSectPerTrack});}' unless defined(&bsSectPerTrack);
    eval 'sub bsHeads () { ($bsBPB->{bpbHeads});}' unless defined(&bsHeads);
    eval 'sub bsHiddenSecs () { ($bsBPB->{bpbHiddenSecs});}' unless defined(&bsHiddenSecs);
    eval 'sub bsHugeSectors () { ($bsBPB->{bpbHugeSectors});}' unless defined(&bsHugeSectors);
}
1;
