diff options
-rw-r--r-- | ext/I18N/Langinfo/Langinfo.xs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/I18N/Langinfo/Langinfo.xs b/ext/I18N/Langinfo/Langinfo.xs index 3422eed83c..3dd0738d5e 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 |