require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_POWERPC_LIMITS_H_)) {
    eval 'sub _POWERPC_LIMITS_H_ () {1;}' unless defined(&_POWERPC_LIMITS_H_);
    require 'sys/cdefs.ph';
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : undef) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : undef)) {
	unless(defined(&SIZE_MAX)) {
	    eval 'sub SIZE_MAX () { &UINT_MAX;}' unless defined(&SIZE_MAX);
	}
	eval 'sub SSIZE_MAX () { &INT_MAX;}' unless defined(&SSIZE_MAX);
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : undef)) {
	eval 'sub SIZE_T_MAX () { &UINT_MAX;}' unless defined(&SIZE_T_MAX);
	eval 'sub UQUAD_MAX () {1.84467440737096e+19;}' unless defined(&UQUAD_MAX);
	eval 'sub QUAD_MAX () {9.22337203685478e+18;}' unless defined(&QUAD_MAX);
	eval 'sub QUAD_MIN () {(-9.22337203685478e+18-1);}' unless defined(&QUAD_MIN);
    }
}
1;
