# HG changeset patch # User jodogne # Date 1549645841 -3600 # Node ID a981ef52bcf60c75b3135912703eef1a4cb73a9e # Parent 121ab36c87bd5785f309088430eb9057978f4547 fix build with postgresql 11 diff -r 121ab36c87bd -r a981ef52bcf6 Framework/PostgreSQL/PostgreSQLIncludes.h --- a/Framework/PostgreSQL/PostgreSQLIncludes.h Fri Feb 08 17:41:38 2019 +0100 +++ b/Framework/PostgreSQL/PostgreSQLIncludes.h Fri Feb 08 18:10:41 2019 +0100 @@ -28,6 +28,15 @@ #include #include +/** + * This include must be before including "c.h" from PostgreSQL, + * otherwise the function "static bool + * boost::date_time::special_values_parser::__builtin_expect()" from Boost clashes with macro + * "__builtin_expect()" used by PostgreSQL 11. + **/ +#include + // PostgreSQL includes #include