require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_I386_VARARGS_H_)) {
    eval 'sub _I386_VARARGS_H_ () {1;}' unless defined(&_I386_VARARGS_H_);
    require 'machine/stdarg.ph';
    if((defined(&__GNUC__) ? &__GNUC__ : 0) == 1) {
	eval 'sub __va_ellipsis () {1;}' unless defined(&__va_ellipsis);
    } else {
	eval 'sub __va_ellipsis () {...;}' unless defined(&__va_ellipsis);
    }
    eval 'sub va_alist () { &__builtin_va_alist;}' unless defined(&va_alist);
    eval 'sub va_dcl () {\'long __builtin_va_alist\';  &__va_ellipsis;}' unless defined(&va_dcl);
    undef(&va_start) if defined(&va_start);
    eval 'sub va_start {
        local($ap) = @_;
	    eval q((($ap) = ( &va_list)& &__builtin_va_alist));
    }' unless defined(&va_start);
}
1;
