require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SSP_STDIO_H_)) {
    eval 'sub _SSP_STDIO_H_ () {1;}' unless defined(&_SSP_STDIO_H_);
    require 'ssp/ssp.ph';
    if((defined(&__SSP_FORTIFY_LEVEL) ? &__SSP_FORTIFY_LEVEL : undef) > 0) {
	eval 'sub sprintf () {( &str, ...)  &__builtin___sprintf_chk( &str, 0,  &__ssp_bos( &str),  &__VA_ARGS__);}' unless defined(&sprintf);
	eval 'sub vsprintf {
	    my($str, $fmt, $ap) = @_;
    	    eval q( &__builtin___vsprintf_chk($str, 0,  &__ssp_bos($str), $fmt, $ap));
	}' unless defined(&vsprintf);
	eval 'sub snprintf () {( &str,  &len, ...)  &__builtin___snprintf_chk( &str,  &len, 0,  &__ssp_bos( &str),  &__VA_ARGS__);}' unless defined(&snprintf);
	eval 'sub vsnprintf {
	    my($str, $len, $fmt, $ap) = @_;
    	    eval q( &__builtin___vsnprintf_chk($str, $len, 0,  &__ssp_bos($str), $fmt, $ap));
	}' unless defined(&vsnprintf);
	eval 'sub gets {
	    my($str) = @_;
    	    eval q( &__gets_chk($str,  &__ssp_bos($str)));
	}' unless defined(&gets);
	eval 'sub fgets {
	    my($str, $len, $fp) = @_;
    	    eval q( &__fgets_chk($str, $len,  &__ssp_bos($str), $fp));
	}' unless defined(&fgets);
    }
}
1;
