diff Framework/PostgreSQL/PostgreSQLStatement.cpp @ 59:318c1ccb787c

fix build with postgresql-11
author s.jodogne@gmail.com
date Sun, 28 Oct 2018 12:29:22 +0100
parents 6a574d810b98
children 714c5d2bee76
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLStatement.cpp	Sun Oct 28 12:07:51 2018 +0100
+++ b/Framework/PostgreSQL/PostgreSQLStatement.cpp	Sun Oct 28 12:29:22 2018 +0100
@@ -29,6 +29,13 @@
 #include "../Common/Utf8StringValue.h"
 #include "PostgreSQLResult.h"
 
+#include <pg_config.h>
+
+#if PG_VERSION_NUM >= 110000
+#  include <postgres.h>
+#  undef LOG  // This one comes from <postgres.h>, and conflicts with <Core/Logging.h>
+#endif
+
 #include <Core/Logging.h>
 #include <Core/OrthancException.h>
 #include <Core/Toolbox.h>