diff options
author | Karl Williamson <khw@cpan.org> | 2022-11-26 16:59:08 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-11-26 17:08:42 -0700 |
commit | 99d24a03f4f65d155416e04274b943ae7245dc21 (patch) | |
tree | ebf30187a53286913758ae98a3027e07e843ee70 /locale.c | |
parent | f17d9825ab9b50967fd3d8742cc1bbccec96c049 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |