require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_STDLIB_H_)) {
    eval 'sub _STDLIB_H_ () {1;}' unless defined(&_STDLIB_H_);
    require 'sys/cdefs.ph';
    require 'sys/featuretest.ph';
    if(defined(&_NETBSD_SOURCE)) {
	require 'sys/types.ph';
    }
    require 'machine/ansi.ph';
    if(defined(&_BSD_SIZE_T_)) {
	undef(&_BSD_SIZE_T_) if defined(&_BSD_SIZE_T_);
    }
    if(defined(&_BSD_WCHAR_T_)  && !defined(&__cplusplus)) {
	undef(&_BSD_WCHAR_T_) if defined(&_BSD_WCHAR_T_);
    }
    if(defined(&_ISOC99_SOURCE) || ((defined(&__STDC_VERSION__) ? &__STDC_VERSION__ : undef) - 0) >= 199901 || defined(&_NETBSD_SOURCE) || ((defined(&__cplusplus) ? &__cplusplus : undef) - 0) >= 201103) {
    }
    if(defined(&_NETBSD_SOURCE)) {
    }
    require 'sys/null.ph';
    eval 'sub EXIT_FAILURE () {1;}' unless defined(&EXIT_FAILURE);
    eval 'sub EXIT_SUCCESS () {0;}' unless defined(&EXIT_SUCCESS);
    eval 'sub RAND_MAX () {0x7fffffff;}' unless defined(&RAND_MAX);
    eval 'sub MB_CUR_MAX () { &__mb_cur_max;}' unless defined(&MB_CUR_MAX);
    unless(defined(&__BSEARCH_DECLARED)) {
	eval 'sub __BSEARCH_DECLARED () {1;}' unless defined(&__BSEARCH_DECLARED);
    }
    if(defined(&_OPENBSD_SOURCE)) {
    }
    if(defined(&_POSIX_C_SOURCE) || defined(&_XOPEN_SOURCE) || defined(&_NETBSD_SOURCE)) {
	if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 199506 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_REENTRANT) || defined(&_NETBSD_SOURCE)) {
	}
	if(defined(&_XOPEN_SOURCE) || defined(&_NETBSD_SOURCE)) {
	    unless(defined(&__LIBC12_SOURCE__)) {
	    }
	}
	if((defined(&_XOPEN_SOURCE)  && defined(&_XOPEN_SOURCE_EXTENDED)) || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
	    unless(defined(&__LIBC12_SOURCE__)) {
	    }
	    if(defined(&_NETBSD_SOURCE)) {
		eval 'sub RANDOM_MAX () {0x7fffffff;}' unless defined(&RANDOM_MAX);
	    }
	    if(defined(&__MKTEMP_OK__)) {
	    }
	}
	if(defined(&_ISOC99_SOURCE) || ((defined(&__STDC_VERSION__) ? &__STDC_VERSION__ : undef) - 0) >= 199901 || defined(&_NETBSD_SOURCE) || ((defined(&__cplusplus) ? &__cplusplus : undef) - 0) >= 201103) {
	}
	if(defined(&_ISOC11_SOURCE) || ((defined(&__STDC_VERSION__) ? &__STDC_VERSION__ : undef) - 0) >= 201101 || defined(&_NETBSD_SOURCE) || ((defined(&__cplusplus) ? &__cplusplus : undef) - 0) >= 201103) {
	}
	if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200112 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 600|| defined(&_NETBSD_SOURCE)) {
	    unless(defined(&__LIBC12_SOURCE__)) {
	    }
	}
	if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200809 || (defined(&_XOPEN_SOURCE)  && defined(&_XOPEN_SOURCE_EXTENDED)) || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
	}
	if(defined(&_NETBSD_SOURCE)) {
	    if(defined(&__PCC__)  && !defined(&__GNUC__)) {
		eval 'sub alloca {
		    my($size) = @_;
    		    eval q( &__builtin_alloca($size));
		}' unless defined(&alloca);
	    } else {
	    }
	    unless(defined(&__LIBC12_SOURCE__)) {
	    }
	    eval 'sub HN_DECIMAL () {0x1;}' unless defined(&HN_DECIMAL);
	    eval 'sub HN_NOSPACE () {0x2;}' unless defined(&HN_NOSPACE);
	    eval 'sub HN_B () {0x4;}' unless defined(&HN_B);
	    eval 'sub HN_DIVISOR_1000 () {0x8;}' unless defined(&HN_DIVISOR_1000);
	    eval 'sub HN_GETSCALE () {0x10;}' unless defined(&HN_GETSCALE);
	    eval 'sub HN_AUTOSCALE () {0x20;}' unless defined(&HN_AUTOSCALE);
	}
    }
    if(defined(&_NETBSD_SOURCE)) {
    }
    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);
	}
	if(defined(&_NETBSD_SOURCE)) {
	    eval 'sub MB_CUR_MAX_L {
	        my($loc) = @_;
    		eval q( &_mb_cur_max_l($loc));
	    }' unless defined(&MB_CUR_MAX_L);
	}
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 202405 || defined(&_NETBSD_SOURCE) || defined(&_OPENBSD_SOURCE)) {
    }
}
1;
