]> git.ipfire.org Git - thirdparty/postgresql.git/commit
plperl: windows: Use Perl_setlocale on 5.28+, fixing compile failure.
authorAndres Freund <andres@anarazel.de>
Sun, 30 Jan 2022 22:29:04 +0000 (14:29 -0800)
committerAndres Freund <andres@anarazel.de>
Mon, 31 Jan 2022 00:42:42 +0000 (16:42 -0800)
commit8484e38126d7522069e44b81cd41ef53f700b2e1
treea4d699c9f8d768757bc0bbc5594bda895e9e5626
parentc025067f6d3fbffd1acc8c70ec9d2ecc5be8c90b
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 <vitus@wagner.pp.ru>
Reviewed-By: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://postgr.es/m/20200501134711.08750c5f@antares.wagner.home
Backpatch: all versions
src/pl/plperl/plperl.c