require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_LIBINTL_H_)) {
    eval 'sub _LIBINTL_H_ () {1;}' unless defined(&_LIBINTL_H_);
    require 'sys/cdefs.ph';
    unless(defined(&_LIBGETTEXT_H)) {
	eval 'sub pgettext_expr {
	    my($msgctxt, $msgid) = @_;
    	    eval q( &pgettext(($msgctxt), ($msgid)));
	}' unless defined(&pgettext_expr);
	eval 'sub dpgettext_expr {
	    my($domainname, $msgctxt, $msgid) = @_;
    	    eval q( &dpgettext(($domainname), ($msgctxt), ($msgid)));
	}' unless defined(&dpgettext_expr);
	eval 'sub dcpgettext_expr {
	    my($domainname, $msgctxt, $msgid, $category) = @_;
    	    eval q( &dcpgettext(($domainname), ($msgctxt), ($msgid), ($category)));
	}' unless defined(&dcpgettext_expr);
	eval 'sub npgettext_expr {
	    my($msgctxt, $msgid1, $msgid2, $n) = @_;
    	    eval q( &npgettext(($msgctxt), ($msgid1), ($msgid2), ($n)));
	}' unless defined(&npgettext_expr);
	eval 'sub dnpgettext_expr {
	    my($domainname, $msgctxt, $msgid1, $n) = @_;
    	    eval q( &dnpgettext(($domainname), ($msgctxt), ($msgid1), ( &msgid2), ($n)));
	}' unless defined(&dnpgettext_expr);
	eval 'sub dcnpgettext_expr {
	    my($domainname, $msgctxt, $msgid1, $msgid2, $n, $category) = @_;
    	    eval q( &dcnpgettext(($domainname), ($msgctxt), ($msgid1), ($msgid2), ($n), ($category)));
	}' unless defined(&dcnpgettext_expr);
    }
}
1;
