# HG changeset patch # User Alain Mazy # Date 1764354593 -3600 # Node ID ff98fb3cb90136894a76d0baa78dd8e3dd968b85 # Parent 923b00f7aa2dcbf4ee7a6a6deeeeae1c23a38324 try to fix vs2008 build diff -r 923b00f7aa2d -r ff98fb3cb901 Resources/PostgreSQL/libpq-18.1-msvc.patch --- a/Resources/PostgreSQL/libpq-18.1-msvc.patch Fri Nov 28 19:01:52 2025 +0100 +++ b/Resources/PostgreSQL/libpq-18.1-msvc.patch Fri Nov 28 19:29:53 2025 +0100 @@ -1,6 +1,6 @@ diff -ruN postgresql-18.1-orig/src/include/c.h postgresql-18.1/src/include/c.h --- postgresql-18.1-orig/src/include/c.h 2025-11-28 18:54:52.627048100 +0100 -+++ postgresql-18.1/src/include/c.h 2025-11-28 18:56:22.269355100 +0100 ++++ postgresql-18.1/src/include/c.h 2025-11-28 19:27:48.922101800 +0100 @@ -59,7 +59,6 @@ #include "pg_config_os.h" /* config from include/port/PORTNAME.h */ @@ -9,3 +9,18 @@ #include #include #include +@@ -475,8 +474,13 @@ + * static assertions around the code to prevent that. + */ + ++#if (_MSC_VER >= 1900) + #include +- ++#else ++#define bool int ++#define false 0 ++#define true 1 ++#endif + + /* ---------------------------------------------------------------- + * Section 3: standard system types