summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-11-26 16:59:08 -0700
committerKarl Williamson <khw@cpan.org>2022-11-26 17:08:42 -0700
commit99d24a03f4f65d155416e04274b943ae7245dc21 (patch)
treeebf30187a53286913758ae98a3027e07e843ee70 /locale.c
parentf17d9825ab9b50967fd3d8742cc1bbccec96c049 (diff)
downloadperl-99d24a03f4f65d155416e04274b943ae7245dc21.tar.gz
locale.c: Fix compilation error on some platforms
Commit 73d66f354cd4df0324b11e46af48f66bd5c1dd15 introduced a compilation error into some platforms lacking nl_langinfo(3) (generally Windows, but their compiler is more lenient in this regard. Simply add a 'const' to the declaration to fix it.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale.c b/locale.c
index 8b5c5aeaf8..3735726ac6 100644
--- a/locale.c
+++ b/locale.c
@@ -4467,7 +4467,7 @@ S_my_langinfo_i(pTHX_
retval++;
/* And stop before any '@' */
- char * modifier = strchr(retval, '@');
+ const char * modifier = strchr(retval, '@');
if (modifier) {
char * code_set_name;
const Size_t name_len = modifier - retval;