@@ -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.39 2008/04/21 10:01:32 mha Exp $
6
+ # $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.40 2008/04/21 18:37:28 mha Exp $
7
7
#
8
8
use Carp;
9
9
use strict;
@@ -118,19 +118,24 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
118
118
print O " #define USE_SSL 1\n " if ($self -> {options }-> {openssl });
119
119
print O " #define ENABLE_NLS 1\n " if ($self -> {options }-> {nls });
120
120
121
- unless ($self -> {options }-> {float4byval })
121
+ if ($self -> {options }-> {float4byval })
122
+ {
123
+ print O " #define USE_FLOAT4_BYVAL 1\n " ;
124
+ print O " #define FLOAT4PASSBYVAL true\n " ;
125
+ }
126
+ else
122
127
{
123
- # float4byval is the default, so undefine
124
- print O " #undef USE_FLOAT4_BYVAL\n " ;
125
- print O " #undef FLOAT4PASSBYVAL\n " ;
126
128
print O " #define FLOAT4PASSBYVAL false\n " ;
127
129
}
128
130
if ($self -> {options }-> {float8byval })
129
131
{
130
- print O " #define USE_FLOAT8_BYVAL\n " ;
131
- print O " #undef FLOAT8PASSBYVAL\n " ;
132
+ print O " #define USE_FLOAT8_BYVAL 1\n " ;
132
133
print O " #define FLOAT8PASSBYVAL true\n " ;
133
134
}
135
+ else
136
+ {
137
+ print O " #define FLOAT8PASSBYVAL false\n " ;
138
+ }
134
139
135
140
if ($self -> {options }-> {uuid })
136
141
{
0 commit comments