File psqlODBC-internal.patch of Package psqlODBC
diff -urEbw psqlodbc-12.02.0000/connection.h psqlodbc-12.02.0000.new/connection.h --- psqlodbc-12.02.0000/connection.h 2020-05-26 11:25:36.000000000 +0200 +++ psqlodbc-12.02.0000.new/connection.h 2020-06-04 11:23:11.137604357 +0200 @@ -11,7 +11,7 @@ #include "psqlodbc.h" #include <libpq-fe.h> -#include "pqexpbuffer.h" +#include "internal/pqexpbuffer.h" #include <time.h> diff -urEbw psqlodbc-12.02.0000/statement.h psqlodbc-12.02.0000.new/statement.h --- psqlodbc-12.02.0000/statement.h 2020-05-26 11:25:36.000000000 +0200 +++ psqlodbc-12.02.0000.new/statement.h 2020-06-04 11:23:08.981589595 +0200 @@ -12,7 +12,7 @@ #include "psqlodbc.h" #include <time.h> -#include "pqexpbuffer.h" +#include "internal/pqexpbuffer.h" #include "pgtypes.h" #include "bind.h" #include "descriptor.h" + +diff -urEbw psqlodbc-16.00.0000/psqlodbc.h psqlodbc-16.00.0000.new/psqlodbc.h +--- psqlodbc-16.00.0000/psqlodbc.h 2025-01-01 00:00:00.000000000 +0000 ++++ psqlodbc-16.00.0000.new/psqlodbc.h 2025-01-01 00:00:00.000000000 +0000 +@@ +-typedef unsigned char bool; ++/* Provide a boolean type for compilers that do not have stdbool.h. ++ Prefer the standard <stdbool.h> for C99 and newer; otherwise fall back ++ to a typedef compatible with the original code. C++ already has bool. ++*/ +#+ifndef __cplusplus +#+ if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#+ include <stdbool.h> +#+ else +typedef unsigned char bool; +# define true 1 +# define false 0 +#+ endif +#endif + +/* End of psqlodbc.h patch */