require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&GSSAPI_KRB5_H_)) {
    eval 'sub GSSAPI_KRB5_H_ () {1;}' unless defined(&GSSAPI_KRB5_H_);
    require 'gssapi/gssapi.ph';
    require 'gssapi/gssapi_oid.ph';
    if(!defined(&__GNUC__)  && !defined(&__attribute__)) {
	eval 'sub __attribute__ {
	    my($x) = @_;
    	    eval q();
	}' unless defined(&__attribute__);
    }
    unless(defined(&GSSKRB5_FUNCTION_DEPRECATED)) {
	eval 'sub GSSKRB5_FUNCTION_DEPRECATED () { &__attribute__(( &deprecated));}' unless defined(&GSSKRB5_FUNCTION_DEPRECATED);
    }
    eval 'sub GSS_KRB5_NT_PRINCIPAL_NAME () {(& &__gss_krb5_nt_principal_name_oid_desc);}' unless defined(&GSS_KRB5_NT_PRINCIPAL_NAME);
    eval 'sub GSS_KRB5_NT_USER_NAME () {(& &__gss_c_nt_user_name_oid_desc);}' unless defined(&GSS_KRB5_NT_USER_NAME);
    eval 'sub GSS_KRB5_NT_MACHINE_UID_NAME () {(& &__gss_c_nt_machine_uid_name_oid_desc);}' unless defined(&GSS_KRB5_NT_MACHINE_UID_NAME);
    eval 'sub GSS_KRB5_NT_STRING_UID_NAME () {(& &__gss_c_nt_string_uid_name_oid_desc);}' unless defined(&GSS_KRB5_NT_STRING_UID_NAME);
    eval 'sub gss_mech_krb5 () { &GSS_KRB5_MECHANISM;}' unless defined(&gss_mech_krb5);
    eval 'sub gss_krb5_nt_general_name () { &GSS_KRB5_NT_PRINCIPAL_NAME;}' unless defined(&gss_krb5_nt_general_name);
}
1;
