Skip to content

Commit 99d24a0

Browse files
committed
locale.c: Fix compilation error on some platforms
Commit 73d66f3 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.
1 parent f17d982 commit 99d24a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

locale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4467,7 +4467,7 @@ S_my_langinfo_i(pTHX_
44674467
retval++;
44684468

44694469
/* And stop before any '@' */
4470-
char * modifier = strchr(retval, '@');
4470+
const char * modifier = strchr(retval, '@');
44714471
if (modifier) {
44724472
char * code_set_name;
44734473
const Size_t name_len = modifier - retval;

0 commit comments

Comments
 (0)