require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_LOCALE_H_)) {
    eval 'sub _LOCALE_H_ () {1;}' unless defined(&_LOCALE_H_);
    require 'sys/featuretest.ph';
    require 'sys/null.ph';
    eval 'sub LC_ALL () {0;}' unless defined(&LC_ALL);
    eval 'sub LC_COLLATE () {1;}' unless defined(&LC_COLLATE);
    eval 'sub LC_CTYPE () {2;}' unless defined(&LC_CTYPE);
    eval 'sub LC_MONETARY () {3;}' unless defined(&LC_MONETARY);
    eval 'sub LC_NUMERIC () {4;}' unless defined(&LC_NUMERIC);
    eval 'sub LC_TIME () {5;}' unless defined(&LC_TIME);
    eval 'sub LC_MESSAGES () {6;}' unless defined(&LC_MESSAGES);
    eval 'sub _LC_LAST () {7;}' unless defined(&_LC_LAST);
    require 'sys/cdefs.ph';
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200809 || defined(&_NETBSD_SOURCE) || defined(&__SETLOCALE_SOURCE__)) {
	unless(defined(&__LOCALE_T_DECLARED)) {
	    eval 'sub __LOCALE_T_DECLARED () {1;}' unless defined(&__LOCALE_T_DECLARED);
	}
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200809 || defined(&_NETBSD_SOURCE)) {
	unless(defined(&__LOCALE_T_DECLARED)) {
	    eval 'sub __LOCALE_T_DECLARED () {1;}' unless defined(&__LOCALE_T_DECLARED);
	}
	eval 'sub LC_ALL_MASK () {(~0);}' unless defined(&LC_ALL_MASK);
	eval 'sub LC_COLLATE_MASK () {((1<<  &LC_COLLATE));}' unless defined(&LC_COLLATE_MASK);
	eval 'sub LC_CTYPE_MASK () {((1<<  &LC_CTYPE));}' unless defined(&LC_CTYPE_MASK);
	eval 'sub LC_MONETARY_MASK () {((1<<  &LC_MONETARY));}' unless defined(&LC_MONETARY_MASK);
	eval 'sub LC_NUMERIC_MASK () {((1<<  &LC_NUMERIC));}' unless defined(&LC_NUMERIC_MASK);
	eval 'sub LC_TIME_MASK () {((1<<  &LC_TIME));}' unless defined(&LC_TIME_MASK);
	eval 'sub LC_MESSAGES_MASK () {((1<<  &LC_MESSAGES));}' unless defined(&LC_MESSAGES_MASK);
	eval 'sub LC_GLOBAL_LOCALE () {(& &_lc_global_locale);}' unless defined(&LC_GLOBAL_LOCALE);
    }
    if(defined(&_NETBSD_SOURCE)) {
	eval 'sub LC_C_LOCALE () {(( &locale_t) &__UNCONST(& &_lc_C_locale));}' unless defined(&LC_C_LOCALE);
    }
}
1;
