Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb5178c5

Browse files
committed
Further tweaks to compiler flags for PL/Perl on Windows.
It now emerges that we can only rely on Perl to tell us we must use-D_USE_32BIT_TIME_T if it's Perl 5.13.4 or later. For older versions,revert to our previous practice of assuming we need that symbol inall 32-bit Windows builds. This is not ideal, but inquiring intowhich compiler version Perl was built with seems far too fragile.In any case, we had not previously had complaints about these oldPerl versions, so let's assume this is Good Enough. (It's stillbetter than the situation ante commit5a5c2fe, in that at leastthe effects are confined to PL/Perl rather than the whole PG build.)Back-patch to all supported versions, like5a5c2fe and predecessors.Discussion:https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=rcA@mail.gmail.com
1 parentd542859 commitb5178c5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎src/tools/msvc/Mkvcbuild.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,18 @@ sub mkvcbuild
530530
}
531531
}
532532

533+
# Perl versions before 5.13.4 don't provide -D_USE_32BIT_TIME_T
534+
# regardless of how they were built. On 32-bit Windows, assume
535+
# such a version was built with a pre-MSVC-2005 compiler, and
536+
# define the symbol anyway, so that we are compatible if we're
537+
# being built with a later MSVC version.
538+
push(@perl_embed_ccflags,'_USE_32BIT_TIME_T')
539+
if$solution->{platform}eq'Win32'
540+
&&$Config{PERL_REVISION} == 5
541+
&& ($Config{PERL_VERSION} < 13
542+
|| ($Config{PERL_VERSION} == 13
543+
&&$Config{PERL_SUBVERSION} < 4));
544+
533545
# Also, a hack to prevent duplicate definitions of uid_t/gid_t
534546
push(@perl_embed_ccflags,'PLPERL_HAVE_UID_GID');
535547

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp