summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-11-27 11:21:02 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-11-27 12:27:20 +0100
commit4513d8b07bf342028ca95250b6e1d759858abdd3 (patch)
tree35612e4af617a4319e619267bd147fe817b8d28d /src/include/c.h
parent47a3c7fa06538c181be815db44b5d7e8efe696ef (diff)
downloadpostgresql-4513d8b07bf342028ca95250b6e1d759858abdd3.tar.gz
Move configure --disable-float8-byval to pg_config_manual.h
This build option was once useful to maintain compatibility with version-0 functions, but those are no longer supported, so this option is no longer useful for end users. We keep the option available to developers in pg_config_manual.h so that it is easy to test the pass-by-reference code paths without having to fire up a 32-bit machine. Discussion: https://www.postgresql.org/message-id/flat/f3e1e576-2749-bbd7-2d57-3f9dcf75255a@2ndquadrant.com
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 802a731267..00e41ac546 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -491,6 +491,12 @@ typedef signed int Offset;
typedef float float4;
typedef double float8;
+#ifdef USE_FLOAT8_BYVAL
+#define FLOAT8PASSBYVAL true
+#else
+#define FLOAT8PASSBYVAL false
+#endif
+
/*
* Oid, RegProcedure, TransactionId, SubTransactionId, MultiXactId,
* CommandId