require '_h2ph_pre.ph';

unless(defined(&__LINUX_ROMFS_FS_H)) {
    eval 'sub __LINUX_ROMFS_FS_H () {1;}' unless defined(&__LINUX_ROMFS_FS_H);
    eval 'sub ROMBSIZE () { &BLOCK_SIZE;}' unless defined(&ROMBSIZE);
    eval 'sub ROMBSBITS () { &BLOCK_SIZE_BITS;}' unless defined(&ROMBSBITS);
    eval 'sub ROMBMASK () {( &ROMBSIZE-1);}' unless defined(&ROMBMASK);
    eval 'sub ROMFS_MAGIC () {0x7275;}' unless defined(&ROMFS_MAGIC);
    eval 'sub ROMFS_MAXFN () {128;}' unless defined(&ROMFS_MAXFN);
    eval 'sub __mkw {
        local($h,$l) = @_;
	    eval q(((($h)&0xff)<< 8|(($l)&0xff)));
    }' unless defined(&__mkw);
    eval 'sub __mkl {
        local($h,$l) = @_;
	    eval q(((($h)&0xffff)<<16|(($l)&0xffff)));
    }' unless defined(&__mkl);
    eval 'sub __mk4 {
        local($a,$b,$c,$d) = @_;
	    eval q( &htonl( &__mkl( &__mkw($a,$b), &__mkw($c,$d))));
    }' unless defined(&__mk4);
    eval 'sub ROMSB_WORD0 () { &__mk4(ord(\'-\',\'r\',\'o\',\'m\'));}' unless defined(&ROMSB_WORD0);
    eval 'sub ROMSB_WORD1 () { &__mk4(ord(\'1\',\'f\',\'s\',\'-\'));}' unless defined(&ROMSB_WORD1);
    eval 'sub ROMFH_TYPE () {7;}' unless defined(&ROMFH_TYPE);
    eval 'sub ROMFH_HRD () {0;}' unless defined(&ROMFH_HRD);
    eval 'sub ROMFH_DIR () {1;}' unless defined(&ROMFH_DIR);
    eval 'sub ROMFH_REG () {2;}' unless defined(&ROMFH_REG);
    eval 'sub ROMFH_SYM () {3;}' unless defined(&ROMFH_SYM);
    eval 'sub ROMFH_BLK () {4;}' unless defined(&ROMFH_BLK);
    eval 'sub ROMFH_CHR () {5;}' unless defined(&ROMFH_CHR);
    eval 'sub ROMFH_SCK () {6;}' unless defined(&ROMFH_SCK);
    eval 'sub ROMFH_FIF () {7;}' unless defined(&ROMFH_FIF);
    eval 'sub ROMFH_EXEC () {8;}' unless defined(&ROMFH_EXEC);
    eval 'sub ROMFH_SIZE () {16;}' unless defined(&ROMFH_SIZE);
    eval 'sub ROMFH_PAD () {( &ROMFH_SIZE-1);}' unless defined(&ROMFH_PAD);
    eval 'sub ROMFH_MASK () {(~ &ROMFH_PAD);}' unless defined(&ROMFH_MASK);
}
1;
