From: Jarkko Hietaniemi Date: Sun, 8 Jul 2001 23:05:41 +0000 (+0000) Subject: Guard the nl_langinfo() with HAS_NL_LANGINFO X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b26484be7ee9210e0cc1b2dc15582bb13fea333;p=p5sagit%2Fp5-mst-13.2.git Guard the nl_langinfo() with HAS_NL_LANGINFO as pointed out by Sarathy. p4raw-id: //depot/perl@11224 --- diff --git a/ext/I18N/Langinfo/Langinfo.xs b/ext/I18N/Langinfo/Langinfo.xs index 3422eed..3dd0738 100644 --- a/ext/I18N/Langinfo/Langinfo.xs +++ b/ext/I18N/Langinfo/Langinfo.xs @@ -826,7 +826,11 @@ SV* langinfo(code) int code CODE: +#ifdef HAS_NL_LANGINFO char *s = nl_langinfo(code); RETVAL = newSVpvn(s, strlen(s)); +#else + croak("nl_langinfo() not implemented on this architecture"); +#endif OUTPUT: RETVAL