diff options
| author | Andrew Dunstan <andrew@dunslane.net> | 2015-04-05 11:49:49 -0400 |
|---|---|---|
| committer | Andrew Dunstan <andrew@dunslane.net> | 2015-04-05 11:49:49 -0400 |
| commit | cf376a4adc0805b0960a5f8e8325fae7d4456926 (patch) | |
| tree | eeae2fb914f93e7f97a8db46926ed974bc39bc32 /src/tools/msvc/Solution.pm | |
| parent | 0ef0396ae1687bf738d4703773d55467c36b2bcd (diff) | |
| download | postgresql-cf376a4adc0805b0960a5f8e8325fae7d4456926.tar.gz | |
Enable float8-byval as the default for 64 bit MSVC builds
This is a long-standing inconsistency that was probably just missed when
we got 64 bit MSVC builds. This brings the platform into line with all
other systems.
Diffstat (limited to 'src/tools/msvc/Solution.pm')
| -rw-r--r-- | src/tools/msvc/Solution.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 714585f3fe..764ba1e692 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -25,11 +25,18 @@ sub _new platform => undef, }; bless($self, $classname); + $self->DeterminePlatform(); + my $bits = $self->{platform} eq 'Win32' ? 32 : 64; + # integer_datetimes is now the default $options->{integer_datetimes} = 1 unless exists $options->{integer_datetimes}; $options->{float4byval} = 1 unless exists $options->{float4byval}; + $options->{float8byval} = ($bits == 64) + unless exists $options->{float8byval}; + die "float8byval not permitted on 32 bit platforms" + if $options->{float8byval} && $bits == 32; if ($options->{xml}) { if (!($options->{xslt} && $options->{iconv})) @@ -56,8 +63,6 @@ sub _new die "Bad wal_segsize $options->{wal_segsize}" unless grep { $_ == $options->{wal_segsize} } (1, 2, 4, 8, 16, 32, 64); - $self->DeterminePlatform(); - return $self; } |
