require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_STREAMBUF_H)) {
    eval 'sub _STREAMBUF_H () {1;}' unless defined(&_STREAMBUF_H);
    if(defined(&__GNUG__)) {
    }
    eval 'sub _IO_NEW_STREAMS () {1;}' unless defined(&_IO_NEW_STREAMS);
    require 'libio.ph';
    if(defined(&_G_NEED_STDARG_H)) {
	require 'stdarg.ph';
    }
    unless(defined(&_IO_va_list)) {
	eval 'sub _IO_va_list () {\'char\' *;}' unless defined(&_IO_va_list);
    }
    unless(defined(&EOF)) {
	eval 'sub EOF () {(-1);}' unless defined(&EOF);
    }
    unless(defined(&NULL)) {
	if(defined(&__GNUG__)) {
	    eval 'sub NULL () {( &__null);}' unless defined(&NULL);
	} else {
	    eval 'sub NULL () {(0);}' unless defined(&NULL);
	}
    }
    unless(defined(&_IO_wchar_t)) {
	if((defined(&_G_IO_IO_FILE_VERSION) ? &_G_IO_IO_FILE_VERSION : 0) == 0x20001) {
	    eval 'sub _IO_wchar_t () { &_G_wchar_t;}' unless defined(&_IO_wchar_t);
	} else {
	    eval 'sub _IO_wchar_t () {\'short\';}' unless defined(&_IO_wchar_t);
	}
    }
    undef(&open) if defined(&open);
    undef(&close) if defined(&close);
    if(defined( &_G_IO_IO_FILE_VERSION)  && (defined(&_G_IO_IO_FILE_VERSION) ? &_G_IO_IO_FILE_VERSION : 0) == 0x20001) {
    } else {
    }
    eval 'sub _IOS_GOOD () {0;}' unless defined(&_IOS_GOOD);
    eval 'sub _IOS_EOF () {1;}' unless defined(&_IOS_EOF);
    eval 'sub _IOS_FAIL () {2;}' unless defined(&_IOS_FAIL);
    eval 'sub _IOS_BAD () {4;}' unless defined(&_IOS_BAD);
    eval 'sub _IO_INPUT () {1;}' unless defined(&_IO_INPUT);
    eval 'sub _IO_OUTPUT () {2;}' unless defined(&_IO_OUTPUT);
    eval 'sub _IO_ATEND () {4;}' unless defined(&_IO_ATEND);
    eval 'sub _IO_APPEND () {8;}' unless defined(&_IO_APPEND);
    eval 'sub _IO_TRUNC () {16;}' unless defined(&_IO_TRUNC);
    eval 'sub _IO_NOCREATE () {32;}' unless defined(&_IO_NOCREATE);
    eval 'sub _IO_NOREPLACE () {64;}' unless defined(&_IO_NOREPLACE);
    eval 'sub _IO_BIN () {128;}' unless defined(&_IO_BIN);
    if(defined(&_STREAM_COMPAT)) {
	eval("sub _good () { _IOS_GOOD; }") unless defined(&_good);
	eval("sub _eof () { _IOS_EOF; }") unless defined(&_eof);
	eval("sub _fail () { _IOS_FAIL; }") unless defined(&_fail);
	eval("sub _bad () { _IOS_BAD; }") unless defined(&_bad);
	eval("sub input () { _IO_INPUT; }") unless defined(&input);
	eval("sub output () { _IO_OUTPUT; }") unless defined(&output);
	eval("sub atend () { _IO_ATEND; }") unless defined(&atend);
	eval("sub append () { _IO_APPEND; }") unless defined(&append);
    }
    eval("sub goodbit () { _IOS_GOOD; }") unless defined(&goodbit);
    eval("sub eofbit () { _IOS_EOF; }") unless defined(&eofbit);
    eval("sub failbit () { _IOS_FAIL; }") unless defined(&failbit);
    eval("sub badbit () { _IOS_BAD; }") unless defined(&badbit);
    eval("sub in () { _IO_INPUT; }") unless defined(&in);
    eval("sub out () { _IO_OUTPUT; }") unless defined(&out);
    eval("sub ate () { _IO_ATEND; }") unless defined(&ate);
    eval("sub app () { _IO_APPEND; }") unless defined(&app);
    eval("sub trunc () { _IO_TRUNC; }") unless defined(&trunc);
    eval("sub nocreate () { _IO_NOCREATE; }") unless defined(&nocreate);
    eval("sub noreplace () { _IO_NOREPLACE; }") unless defined(&noreplace);
    eval("sub bin () { _IOS_BIN; }") unless defined(&bin);
    eval("sub binary () { _IOS_BIN; }") unless defined(&binary);
    eval("sub beg () { 0; }") unless defined(&beg);
    eval("sub cur () { 1; }") unless defined(&cur);
    eval("sub end () { 2; }") unless defined(&end);
    eval("sub skipws () { _IO_SKIPWS; }") unless defined(&skipws);
    eval("sub left () { _IO_LEFT; }") unless defined(&left);
    eval("sub right () { _IO_RIGHT; }") unless defined(&right);
    eval("sub internal () { _IO_INTERNAL; }") unless defined(&internal);
    eval("sub dec () { _IO_DEC; }") unless defined(&dec);
    eval("sub oct () { _IO_OCT; }") unless defined(&oct);
    eval("sub hex () { _IO_HEX; }") unless defined(&hex);
    eval("sub showbase () { _IO_SHOWBASE; }") unless defined(&showbase);
    eval("sub showpoint () { _IO_SHOWPOINT; }") unless defined(&showpoint);
    eval("sub uppercase () { _IO_UPPERCASE; }") unless defined(&uppercase);
    eval("sub showpos () { _IO_SHOWPOS; }") unless defined(&showpos);
    eval("sub scientific () { _IO_SCIENTIFIC; }") unless defined(&scientific);
    eval("sub fixed () { _IO_FIXED; }") unless defined(&fixed);
    eval("sub unitbuf () { _IO_UNITBUF; }") unless defined(&unitbuf);
    eval("sub stdio () { _IO_STDIO; }") unless defined(&stdio);
    eval("sub basefield () { dec+oct+hex; }") unless defined(&basefield);
    eval("sub floatfield () { scientific+fixed; }") unless defined(&floatfield);
    eval("sub adjustfield () { left+right+internal; }") unless defined(&adjustfield);
    if(defined(&_IO_THROW)) {
    }
    if(defined(&_IO_THROW)) {
    } else {
    }
    if(defined(&_STREAM_COMPAT)) {
    }
    if((defined(&__GNUG__) ? &__GNUG__ : 0)==1) {
    } else {
    }
    if(0) {
    }
    if((defined(&_G_IO_IO_FILE_VERSION) ? &_G_IO_IO_FILE_VERSION : 0) == 0x20001) {
    }
    if(!(defined(&_IO_UNIFIED_JUMPTABLES) ? &_IO_UNIFIED_JUMPTABLES : 0)) {
    }
    if(0) {
    }
    if(defined(&_IO_NEW_STREAMS)) {
    } else {
    }
    unless(defined(&_IO_NEW_STREAMS)) {
    }
}
1;
