projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d22779f
)
Guard the nl_langinfo() with HAS_NL_LANGINFO
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 8 Jul 2001 23:05:41 +0000
(23:05 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 8 Jul 2001 23:05:41 +0000
(23:05 +0000)
as pointed out by Sarathy.
p4raw-id: //depot/perl@11224
ext/I18N/Langinfo/Langinfo.xs
patch
|
blob
|
history
diff --git
a/ext/I18N/Langinfo/Langinfo.xs
b/ext/I18N/Langinfo/Langinfo.xs
index
3422eed
..
3dd0738
100644
(file)
--- 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