Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLIncludes.h @ 124:a981ef52bcf6
fix build with postgresql 11
author | jodogne |
---|---|
date | Fri, 08 Feb 2019 18:10:41 +0100 |
parents | 57c0138d456e |
children | 4cd7e45b671e |
comparison
equal
deleted
inserted
replaced
123:121ab36c87bd | 124:a981ef52bcf6 |
---|---|
26 #include <vector> | 26 #include <vector> |
27 #include <map> | 27 #include <map> |
28 #include <cmath> | 28 #include <cmath> |
29 #include <Core/Enumerations.h> | 29 #include <Core/Enumerations.h> |
30 | 30 |
31 /** | |
32 * This include must be before including "c.h" from PostgreSQL, | |
33 * otherwise the function "static bool | |
34 * boost::date_time::special_values_parser<date_type, | |
35 * charT>::__builtin_expect()" from Boost clashes with macro | |
36 * "__builtin_expect()" used by PostgreSQL 11. | |
37 **/ | |
38 #include <boost/date_time/posix_time/posix_time.hpp> | |
39 | |
31 // PostgreSQL includes | 40 // PostgreSQL includes |
32 #include <pg_config.h> | 41 #include <pg_config.h> |
33 | 42 |
34 #if PG_VERSION_NUM >= 110000 | 43 #if PG_VERSION_NUM >= 110000 |
35 # include <postgres.h> | 44 # include <postgres.h> |