plperl: windows: Use Perl_setlocale on 5.28+, fixing compile failure.
authorAndres Freund <[email protected]>
Sun, 30 Jan 2022 22:29:04 +0000 (14:29 -0800)
committerAndres Freund <[email protected]>
Mon, 31 Jan 2022 00:43:07 +0000 (16:43 -0800)
commit2557a03f890686501029f9ec12856a4abbc5f414
tree1d42ceec629a3f8df34f2a17323f3e4b7a10d4fe
parent4ef38fbe8b9600e4d554ec39d16c79e7356dec56
plperl: windows: Use Perl_setlocale on 5.28+, fixing compile failure.

For older versions we need our own copy of perl's setlocale(), because it was
not exposed (why we need the setlocale in the first place is explained in
plperl_init_interp) . The copy stopped working in 5.28, as some of the used
macros are not public anymore.  But Perl_setlocale is available in 5.28, so
use that.

Author: Victor Wagner <[email protected]>
Reviewed-By: Dagfinn Ilmari MannsÃ¥ker <[email protected]>
Discussion: https://postgr.es/m/20200501134711.08750c5f@antares.wagner.home
Backpatch: all versions
src/pl/plperl/plperl.c