diff Framework/PostgreSQL/PostgreSQLDatabase.cpp @ 103:9263b3de37ed

fix build on Debian Buster
author jodogne
date Tue, 22 Jan 2019 13:14:52 +0000
parents 714c5d2bee76
children eefbcee7bd78
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLDatabase.cpp	Mon Jan 21 17:34:50 2019 +0100
+++ b/Framework/PostgreSQL/PostgreSQLDatabase.cpp	Tue Jan 22 13:14:52 2019 +0000
@@ -19,6 +19,7 @@
  **/
 
 
+#include "PostgreSQLIncludes.h"
 #include "PostgreSQLDatabase.h"
 
 #include "PostgreSQLResult.h"
@@ -26,23 +27,11 @@
 #include "PostgreSQLTransaction.h"
 #include "../Common/ImplicitTransaction.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 <boost/lexical_cast.hpp>
 
-// PostgreSQL includes
-#include <libpq-fe.h>
-#include <c.h>
-#include <catalog/pg_type.h>
-
 
 namespace OrthancDatabases
 {