From 819b49a6e1f727d6c00e7fd2d41711afe752c70a Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Mon, 21 Apr 2008 02:04:09 +0000
Subject: [PATCH] Add FLOAT4PASSBYVAL/FLOAT8PASSBYVAL to pg_config.h.win32, as
 a stopgap measure to get the Windows buildfarm members working again.  I
 don't know if it's worth exposing these as configurables, or exactly how to
 do it in the MSVC build system ...

---
 src/include/pg_config.h.win32 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32
index 1c7e3cd2d00..8501f53d98b 100644
--- a/src/include/pg_config.h.win32
+++ b/src/include/pg_config.h.win32
@@ -53,6 +53,13 @@
    (--enable-thread-safety) */
 #define ENABLE_THREAD_SAFETY 1
 
+/* float4 values are passed by value if 'true', by reference if 'false' */
+#define FLOAT4PASSBYVAL true
+
+/* float8, int8, and related values are passed by value if 'true', by
+   reference if 'false' */
+#define FLOAT8PASSBYVAL false
+
 /* Define to 1 if getpwuid_r() takes a 5th argument. */
 /* #undef GETPWUID_R_5ARG */
 
@@ -616,6 +623,14 @@
 /* Define to 1 to build with Bonjour support. (--with-bonjour) */
 /* #undef USE_BONJOUR */
 
+/* Define to 1 if you want float4 values to be passed by value.
+   (--enable-float4-byval) */
+#define USE_FLOAT4_BYVAL 1
+
+/* Define to 1 if you want float8, int8, etc values to be passed by value.
+   (--enable-float8-byval) */
+/* #undef USE_FLOAT8_BYVAL */
+
 /* Define to 1 if you want 64-bit integer timestamp and interval support.
    (--enable-integer-datetimes) */
 /* #undef USE_INTEGER_DATETIMES */
-- 
GitLab