require '_h2ph_pre.ph';

if(!defined (defined(&_STDIO_H) ? &_STDIO_H : 0)  && !defined (defined(&__need_FOPEN_MAX) ? &__need_FOPEN_MAX : 0)  && !defined (defined(&__need_IOV_MAX) ? &__need_IOV_MAX : 0)) {
    die("Never include <bits/stdio_lim.h> directly; use <stdio.h> instead.");
}
if(defined(&_STDIO_H)) {
    eval 'sub L_tmpnam () {20;}' unless defined(&L_tmpnam);
    eval 'sub TMP_MAX () {238328;}' unless defined(&TMP_MAX);
    eval 'sub FILENAME_MAX () {4096;}' unless defined(&FILENAME_MAX);
    if(defined(&__USE_POSIX)) {
	eval 'sub L_ctermid () {9;}' unless defined(&L_ctermid);
	eval 'sub L_cuserid () {9;}' unless defined(&L_cuserid);
    }
}
if(defined (defined(&__need_FOPEN_MAX) ? &__need_FOPEN_MAX : 0) || defined (defined(&_STDIO_H) ? &_STDIO_H : 0)) {
    undef(&FOPEN_MAX) if defined(&FOPEN_MAX);
    eval 'sub FOPEN_MAX () {16;}' unless defined(&FOPEN_MAX);
}
if(defined (defined(&__need_IOV_MAX) ? &__need_IOV_MAX : 0)  && !defined (defined(&IOV_MAX) ? &IOV_MAX : 0)) {
    eval 'sub IOV_MAX () {1024;}' unless defined(&IOV_MAX);
}
1;
