require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_MSDOSFS_DIRENTRY_H_)) {
    eval 'sub _MSDOSFS_DIRENTRY_H_ () {1;}' unless defined(&_MSDOSFS_DIRENTRY_H_);
    eval 'sub SLOT_EMPTY () {0x;}' unless defined(&SLOT_EMPTY);
    eval 'sub SLOT_E5 () {0x5;}' unless defined(&SLOT_E5);
    eval 'sub SLOT_DELETED () {0xe5;}' unless defined(&SLOT_DELETED);
    eval 'sub ATTR_NORMAL () {0x;}' unless defined(&ATTR_NORMAL);
    eval 'sub ATTR_READONLY () {0x1;}' unless defined(&ATTR_READONLY);
    eval 'sub ATTR_HIDDEN () {0x2;}' unless defined(&ATTR_HIDDEN);
    eval 'sub ATTR_SYSTEM () {0x4;}' unless defined(&ATTR_SYSTEM);
    eval 'sub ATTR_VOLUME () {0x8;}' unless defined(&ATTR_VOLUME);
    eval 'sub ATTR_DIRECTORY () {0x10;}' unless defined(&ATTR_DIRECTORY);
    eval 'sub ATTR_ARCHIVE () {0x20;}' unless defined(&ATTR_ARCHIVE);
    eval 'sub msdos_dirchar {
        my($de,$i) = @_;
	    eval q({ $i < $sizeof{ ($de->{deName})} ?  ($de->{deName[$i]}) :  ($de->{deExtension[$i }- s$izeof($de->{deName)]}); });
    }' unless defined(&msdos_dirchar);
    eval 'sub WIN_LAST () {0x40;}' unless defined(&WIN_LAST);
    eval 'sub WIN_CNT () {0x3f;}' unless defined(&WIN_CNT);
    eval 'sub ATTR_WIN95 () {0xf;}' unless defined(&ATTR_WIN95);
    eval 'sub WIN_CHARS () {13;}' unless defined(&WIN_CHARS);
    eval 'sub DT_2SECONDS_MASK () {0x1f;}' unless defined(&DT_2SECONDS_MASK);
    eval 'sub DT_2SECONDS_SHIFT () {0;}' unless defined(&DT_2SECONDS_SHIFT);
    eval 'sub DT_MINUTES_MASK () {0x7e0;}' unless defined(&DT_MINUTES_MASK);
    eval 'sub DT_MINUTES_SHIFT () {5;}' unless defined(&DT_MINUTES_SHIFT);
    eval 'sub DT_HOURS_MASK () {0xf800;}' unless defined(&DT_HOURS_MASK);
    eval 'sub DT_HOURS_SHIFT () {11;}' unless defined(&DT_HOURS_SHIFT);
    eval 'sub DD_DAY_MASK () {0x1f;}' unless defined(&DD_DAY_MASK);
    eval 'sub DD_DAY_SHIFT () {0;}' unless defined(&DD_DAY_SHIFT);
    eval 'sub DD_MONTH_MASK () {0x1e0;}' unless defined(&DD_MONTH_MASK);
    eval 'sub DD_MONTH_SHIFT () {5;}' unless defined(&DD_MONTH_SHIFT);
    eval 'sub DD_YEAR_MASK () {0xfe00;}' unless defined(&DD_YEAR_MASK);
    eval 'sub DD_YEAR_SHIFT () {9;}' unless defined(&DD_YEAR_SHIFT);
    if(defined(&_KERNEL) || defined(&MAKEFS)) {
    }
}
1;
