require '_h2ph_pre.ph';

no warnings qw(redefine misc);

if(defined(&PIC)) {
    eval 'sub MCOUNT () {"(assembly code)";}' unless defined(&MCOUNT);
} else {
    eval 'sub MCOUNT () {"(assembly code)";}' unless defined(&MCOUNT);
}
unless(defined(&_MCOUNT_DECL)) {
    sub _MCOUNT_DECL () {	 &static  &void  &__mcount;}
}
if(defined(&_KERNEL)) {
    eval 'sub MCOUNT_ENTER () { &s =  &splhigh();}' unless defined(&MCOUNT_ENTER);
    eval 'sub MCOUNT_EXIT () { &splx( &s);}' unless defined(&MCOUNT_EXIT);
}
1;
