require '_h2ph_pre.ph';

unless(defined(&_POWERPC_CDEFS_H_)) {
    eval 'sub _POWERPC_CDEFS_H_ () {1;}' unless defined(&_POWERPC_CDEFS_H_);
    if(defined(&__STDC__)) {
	eval 'sub _C_LABEL {
	    local($x) = @_;
    	    eval q( &_STRING( &_  $x));
	}' unless defined(&_C_LABEL);
    } else {
	eval 'sub _C_LABEL {
	    local($x) = @_;
    	    eval q( &_STRING( &_ $x));
	}' unless defined(&_C_LABEL);
    }
    eval 'sub __weak_alias {
        local($alias,$sym) = @_;
	    eval q( &__asm__(\\".weak \\"  &__STRING($alias) \\" ; \\"  &__STRING($alias) \\" = \\"  &__STRING($sym)));
    }' unless defined(&__weak_alias);
    eval 'sub __warn_references {
        local($sym,$msg) = @_;
	    eval q( &__asm__(\\".section .gnu.warning.\\"  &__STRING($sym) \\" ; .ascii \\\\\\"\\" $msg \\"\\\\\\" ; .text\\"));
    }' unless defined(&__warn_references);
}
1;
