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

Commita31b03b

Browse files
committed
Clean up float4byval and float8byval handling by dealing with them completely
from inside the build script.
1 parentbe9ab11 commita31b03b

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

‎src/include/pg_config.h.win32

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@
5353
(--enable-thread-safety) */
5454
#define ENABLE_THREAD_SAFETY 1
5555

56-
/* float4 values are passed by value if 'true', by reference if 'false' */
57-
#define FLOAT4PASSBYVAL true
58-
59-
/* float8, int8, and related values are passed by value if 'true', by
60-
reference if 'false' */
61-
#define FLOAT8PASSBYVAL false
62-
6356
/* Define to 1 if getpwuid_r() takes a 5th argument. */
6457
/* #undef GETPWUID_R_5ARG */
6558

@@ -623,14 +616,6 @@
623616
/* Define to 1 to build with Bonjour support. (--with-bonjour) */
624617
/* #undef USE_BONJOUR */
625618

626-
/* Define to 1 if you want float4 values to be passed by value.
627-
(--enable-float4-byval) */
628-
#define USE_FLOAT4_BYVAL 1
629-
630-
/* Define to 1 if you want float8, int8, etc values to be passed by value.
631-
(--enable-float8-byval) */
632-
/* #undef USE_FLOAT8_BYVAL */
633-
634619
/* Define to 1 if you want 64-bit integer timestamp and interval support.
635620
(--enable-integer-datetimes) */
636621
/* #undef USE_INTEGER_DATETIMES */

‎src/tools/msvc/Solution.pm

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Solution;
33
#
44
# Package that encapsulates a Visual C++ solution file generation
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.39 2008/04/2110:01:32 mha Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Solution.pm,v 1.40 2008/04/2118:37:28 mha Exp $
77
#
88
use Carp;
99
use strict;
@@ -118,19 +118,24 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
118118
print O"#define USE_SSL 1\n"if ($self->{options}->{openssl});
119119
print O"#define ENABLE_NLS 1\n"if ($self->{options}->{nls});
120120

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
122127
{
123-
# float4byval is the default, so undefine
124-
print O"#undef USE_FLOAT4_BYVAL\n";
125-
print O"#undef FLOAT4PASSBYVAL\n";
126128
print O"#define FLOAT4PASSBYVAL false\n";
127129
}
128130
if ($self->{options}->{float8byval})
129131
{
130-
print O"#define USE_FLOAT8_BYVAL\n";
131-
print O"#undef FLOAT8PASSBYVAL\n";
132+
print O"#define USE_FLOAT8_BYVAL 1\n";
132133
print O"#define FLOAT8PASSBYVAL true\n";
133134
}
135+
else
136+
{
137+
print O"#define FLOAT8PASSBYVAL false\n";
138+
}
134139

135140
if ($self->{options}->{uuid})
136141
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp