@@ -3,7 +3,7 @@ package Solution;
3
3
#
4
4
# Package that encapsulates a Visual C++ solution file generation
5
5
#
6
- # $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.38 2008/04/15 12:16:51 adunstan Exp $
6
+ # $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.39 2008/04/21 10:01:32 mha Exp $
7
7
#
8
8
use Carp;
9
9
use strict;
@@ -25,6 +25,8 @@ sub new
25
25
# integer_datetimes is now the default
26
26
$options -> {integer_datetimes } = 1
27
27
unless exists $options -> {integer_datetimes };
28
+ $options -> {float4byval } = 1
29
+ unless exists $options -> {float4byval };
28
30
if ($options -> {xml })
29
31
{
30
32
if (!($options -> {xslt } && $options -> {iconv }))
@@ -115,6 +117,20 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
115
117
print O " #define HAVE_LIBZ 1\n " if ($self -> {options }-> {zlib });
116
118
print O " #define USE_SSL 1\n " if ($self -> {options }-> {openssl });
117
119
print O " #define ENABLE_NLS 1\n " if ($self -> {options }-> {nls });
120
+
121
+ unless ($self -> {options }-> {float4byval })
122
+ {
123
+ # float4byval is the default, so undefine
124
+ print O " #undef USE_FLOAT4_BYVAL\n " ;
125
+ print O " #undef FLOAT4PASSBYVAL\n " ;
126
+ print O " #define FLOAT4PASSBYVAL false\n " ;
127
+ }
128
+ if ($self -> {options }-> {float8byval })
129
+ {
130
+ print O " #define USE_FLOAT8_BYVAL\n " ;
131
+ print O " #undef FLOAT8PASSBYVAL\n " ;
132
+ print O " #define FLOAT8PASSBYVAL true\n " ;
133
+ }
118
134
119
135
if ($self -> {options }-> {uuid })
120
136
{
0 commit comments