require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_POWERPC_STDARG_H_)) {
    eval 'sub _POWERPC_STDARG_H_ () {1;}' unless defined(&_POWERPC_STDARG_H_);
    require 'sys/cdefs.ph';
    require 'machine/_types.ph';
    if(defined(&__lint__)) {
	eval 'sub va_start {
	    my($ap, $last) = @_;
    	    eval q((($ap) = ($ap)));
	}' unless defined(&va_start);
	eval 'sub va_arg {
	    my($ap, $type) = @_;
    	    eval q((*($type *)( &void *)$ap));
	}' unless defined(&va_arg);
	eval 'sub va_end {
	    my($ap) = @_;
    	    eval q();
	}' unless defined(&va_end);
	eval 'sub __va_copy {
	    my($dst, $src) = @_;
    	    eval q((($dst) = ($src)));
	}' unless defined(&__va_copy);
    } else {
	die("Unsupported compiler");
    }
}
1;
