summaryrefslogtreecommitdiff
path: root/ext/I18N-Langinfo/Langinfo.xs
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-08 10:59:53 -0700
committerKarl Williamson <khw@cpan.org>2018-03-12 10:17:14 -0600
commit6201c2203671c3e78f25fa02205bd962d5bd92b1 (patch)
tree02357dbfcbe38f5d7542e8651af0727a1fc05b22 /ext/I18N-Langinfo/Langinfo.xs
parent4e6826bf86819426cea8be0677b2a3282834ced5 (diff)
downloadperl-6201c2203671c3e78f25fa02205bd962d5bd92b1.tar.gz
Actually make I18N::Langinfo avail on all platforms
I thought I had done this earlier, but testing on Windows demonstrated that I hadn't. While at it, move the details in the docs for Perl_langinfo to the module's pod. This doesn't follow the paradigm for putting the Configure stuff in all the related configure files, but I saw no point to doing so. If you are reading this because I was wrong, feel free to ticket it or fix it.
Diffstat (limited to 'ext/I18N-Langinfo/Langinfo.xs')
-rw-r--r--ext/I18N-Langinfo/Langinfo.xs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/I18N-Langinfo/Langinfo.xs b/ext/I18N-Langinfo/Langinfo.xs
index aae48c2b28..663cb2a665 100644
--- a/ext/I18N-Langinfo/Langinfo.xs
+++ b/ext/I18N-Langinfo/Langinfo.xs
@@ -7,6 +7,8 @@
#ifdef I_LANGINFO
# define __USE_GNU 1 /* Enables YESSTR, otherwise only __YESSTR. */
# include <langinfo.h>
+#else
+# include <perl_langinfo.h>
#endif
#include "const-c.inc"
@@ -30,7 +32,7 @@ langinfo(code)
RETVAL = newSVpv(Perl_langinfo(code), 0);
}
#else
- croak("nl_langinfo() not implemented on this architecture");
+ RETVAL = newSVpv(Perl_langinfo(code), 0);
#endif
OUTPUT:
RETVAL