require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_IOS_BASE_H)) {
    eval 'sub _IOS_BASE_H () {1;}' unless defined(&_IOS_BASE_H);
    require 'ext/atomicity.ph';
    require 'bits/localefwd.ph';
    require 'bits/locale_classes.ph';
    eval("sub _S_boolalpha () { 1L<<0; }") unless defined(&_S_boolalpha);
    eval("sub _S_dec () { 1L<<1; }") unless defined(&_S_dec);
    eval("sub _S_fixed () { 1L<<2; }") unless defined(&_S_fixed);
    eval("sub _S_hex () { 1L<<3; }") unless defined(&_S_hex);
    eval("sub _S_internal () { 1L<<4; }") unless defined(&_S_internal);
    eval("sub _S_left () { 1L<<5; }") unless defined(&_S_left);
    eval("sub _S_oct () { 1L<<6; }") unless defined(&_S_oct);
    eval("sub _S_right () { 1L<<7; }") unless defined(&_S_right);
    eval("sub _S_scientific () { 1L<<8; }") unless defined(&_S_scientific);
    eval("sub _S_showbase () { 1L<<9; }") unless defined(&_S_showbase);
    eval("sub _S_showpoint () { 1L<<10; }") unless defined(&_S_showpoint);
    eval("sub _S_showpos () { 1L<<11; }") unless defined(&_S_showpos);
    eval("sub _S_skipws () { 1L<<12; }") unless defined(&_S_skipws);
    eval("sub _S_unitbuf () { 1L<<13; }") unless defined(&_S_unitbuf);
    eval("sub _S_uppercase () { 1L<<14; }") unless defined(&_S_uppercase);
    eval("sub _S_adjustfield () { _S_left|_S_right|_S_internal; }") unless defined(&_S_adjustfield);
    eval("sub _S_basefield () { _S_dec|_S_oct|_S_hex; }") unless defined(&_S_basefield);
    eval("sub _S_floatfield () { _S_scientific|_S_fixed; }") unless defined(&_S_floatfield);
    eval("sub _S_ios_fmtflags_end () { 1L<<16; }") unless defined(&_S_ios_fmtflags_end);
    eval("sub _S_app () { 1L<<0; }") unless defined(&_S_app);
    eval("sub _S_ate () { 1L<<1; }") unless defined(&_S_ate);
    eval("sub _S_bin () { 1L<<2; }") unless defined(&_S_bin);
    eval("sub _S_in () { 1L<<3; }") unless defined(&_S_in);
    eval("sub _S_out () { 1L<<4; }") unless defined(&_S_out);
    eval("sub _S_trunc () { 1L<<5; }") unless defined(&_S_trunc);
    eval("sub _S_ios_openmode_end () { 1L<<16; }") unless defined(&_S_ios_openmode_end);
    eval("sub _S_goodbit () { 0; }") unless defined(&_S_goodbit);
    eval("sub _S_badbit () { 1L<<0; }") unless defined(&_S_badbit);
    eval("sub _S_eofbit () { 1L<<1; }") unless defined(&_S_eofbit);
    eval("sub _S_failbit () { 1L<<2; }") unless defined(&_S_failbit);
    eval("sub _S_ios_iostate_end () { 1L<<16; }") unless defined(&_S_ios_iostate_end);
    eval("sub _S_beg () { 0; }") unless defined(&_S_beg);
    eval("sub _S_cur () { SEEK_CUR; }") unless defined(&_S_cur);
    eval("sub _S_end () { SEEK_END; }") unless defined(&_S_end);
    eval("sub _S_ios_seekdir_end () { 1L<<16; }") unless defined(&_S_ios_seekdir_end);
    eval("sub erase_event () { 0; }") unless defined(&erase_event);
    eval("sub imbue_event () { 1; }") unless defined(&imbue_event);
    eval("sub copyfmt_event () { 2; }") unless defined(&copyfmt_event);
    eval("sub _S_local_word_size () { 8; }") unless defined(&_S_local_word_size);
}
1;
