require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_STDLIB_H_)) {
    eval 'sub _STDLIB_H_ () {1;}' unless defined(&_STDLIB_H_);
    require 'sys/cdefs.ph';
    require 'machine/_types.ph';
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) ) {
	require 'sys/types.ph';
    }
    unless(defined(&_SIZE_T_DEFINED_)) {
	eval 'sub _SIZE_T_DEFINED_ () {1;}' unless defined(&_SIZE_T_DEFINED_);
    }
    if(!defined( &_WCHAR_T_DEFINED_)  && !defined( &__cplusplus)) {
	eval 'sub _WCHAR_T_DEFINED_ () {1;}' unless defined(&_WCHAR_T_DEFINED_);
    }
    if((defined(&__ISO_C_VISIBLE) ? &__ISO_C_VISIBLE : 0) >= 1999) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    unless(defined(&NULL)) {
	if(defined(&__GNUG__)) {
	    eval 'sub NULL () { &__null;}' unless defined(&NULL);
	} else {
	    eval 'sub NULL () {0;}' unless defined(&NULL);
	}
    }
    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);
    require 'sys/cdefs.ph';
    if(defined(&abs)) {
	undef(&abs) if defined(&abs);
	warn("abs\ macro\ collides\ with\ abs\(\)\ prototype\,\ undefining");
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 199506|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 500|| defined( &_REENTRANT)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 400) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 420) {
    }
    if((defined(&__ISO_C_VISIBLE) ? &__ISO_C_VISIBLE : 0) >= 1999) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 200112|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 600) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	if(defined( &alloca)  && ((defined(&alloca) ? &alloca : 0) == (defined(&__builtin_alloca) ? &__builtin_alloca : 0))  && ((defined(&__GNUC__) ? &__GNUC__ : 0) < 2)) {
	} else {
	}
	unless(defined(&_GETOPT_DEFINED_)) {
	    eval 'sub _GETOPT_DEFINED_ () {1;}' unless defined(&_GETOPT_DEFINED_);
	}
    }
}
1;
