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

Commit186a0c9

Browse files
committed
Properly zero-pad the day-of-year part of the win32 build number
This ensure the version number increases over time. The first three digitsin the version number is still set to the actual PostgreSQL versionnumber, but the last one is intended to be an ever increasing build number,which previosly failed when it changed between 1, 2 and 3 digits long values.Noted by Deepak
1 parent66e6916 commit186a0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/tools/msvc/Project.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ sub AddResourceFile
300300
my ($self,$dir,$desc,$ico) =@_;
301301

302302
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =localtime(time);
303-
my$d =($year - 100) ."$yday";
303+
my$d =sprintf("%02d%03d", ($year - 100),$yday);
304304

305305
if (Solution::IsNewer("$dir\\win32ver.rc",'src\port\win32ver.rc'))
306306
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp