Mercurial > hg > orthanc-databases
changeset 775:ff98fb3cb901
try to fix vs2008 build
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Fri, 28 Nov 2025 19:29:53 +0100 |
| parents | 923b00f7aa2d |
| children | fbe0c295f8ce |
| files | Resources/PostgreSQL/libpq-18.1-msvc.patch |
| diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <stdio.h> #include <stdlib.h> #include <string.h> +@@ -475,8 +474,13 @@ + * static assertions around the code to prevent that. + */ + ++#if (_MSC_VER >= 1900) + #include <stdbool.h> +- ++#else ++#define bool int ++#define false 0 ++#define true 1 ++#endif + + /* ---------------------------------------------------------------- + * Section 3: standard system types
