Re: Postgresql Windows build and modern perl (>=5.28)
Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
To: Victor Wagner <vitus@wagner.pp.ru>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2021-10-04T22:08:25Z
Lists: pgsql-hackers
Victor Wagner <vitus@wagner.pp.ru> writes: > Attached patch makes use of this function if PERL_VERSION >= 28. > It makes plperl compile with ActiveStatePerl 5.28 and StrawberryPerl > 5.30.2.1. I have no opinion on the substantive content of this patch, but please don't just check against just PERL_VERSION. Now that Perl 6 has been renamed to Raku, Perl may bump its major version (PERL_REVISION) to 7 at some point in th future. The correct thing to use is the PERL_VERSION_(GT|GE|LE|LT|EQ|NE) macros, which are provided by newer versions of perl. We would need to update the included copy of ppport.h to get them on older perls, but we should do that anyway, it's not been updated since 2009. I'll start a separate thread for that. - ilmari
Commits
-
plperl: windows: Use Perl_setlocale on 5.28+, fixing compile failure.
- 2557a03f8906 10.20 landed
- ad95a639ab09 11.15 landed
- f173738d5656 12.10 landed
- 0dc0fe7b6c45 13.6 landed
- 8484e38126d7 14.2 landed
- c89f409749c3 15.0 landed