summaryrefslogtreecommitdiff
path: root/libodbcpp
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp')
-rw-r--r--libodbcpp/odbc-column.cpp7
-rw-r--r--libodbcpp/odbc-command.h7
-rw-r--r--libodbcpp/odbc-param.cpp1
-rw-r--r--libodbcpp/odbc-param.h4
-rw-r--r--libodbcpp/unittests/testodbc.cpp3
5 files changed, 6 insertions, 16 deletions
diff --git a/libodbcpp/odbc-column.cpp b/libodbcpp/odbc-column.cpp
index bddff4b..7c01bd3 100644
--- a/libodbcpp/odbc-column.cpp
+++ b/libodbcpp/odbc-column.cpp
@@ -3,10 +3,9 @@
#include "odbc-error.h"
#include "odbc-param_fwd.h"
#include "odbc-selectcommand.h"
-#include <boost/date_time/gregorian/greg_date.hpp>
-#include <boost/date_time/posix_time/posix_time_types.hpp>
-#include <boost/date_time/posix_time/ptime.hpp>
-#include <boost/date_time/time_duration.hpp>
+#include <boost/date_time/gregorian_calendar.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
+#include <boost/date_time/time.hpp>
#include <cstdio>
namespace Glib {
diff --git a/libodbcpp/odbc-command.h b/libodbcpp/odbc-command.h
index ff8b2fe..cb9fc77 100644
--- a/libodbcpp/odbc-command.h
+++ b/libodbcpp/odbc-command.h
@@ -2,8 +2,7 @@
#define ODBC_COMMAND_H
#include "odbc-param_fwd.h" // IWYU pragma: keep
-#include <boost/date_time/posix_time/posix_time_types.hpp>
-#include <boost/date_time/posix_time/ptime.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
#include <command.h>
#include <glibmm/ustring.h>
#include <memory>
@@ -12,10 +11,6 @@
#include <string_view>
#include <vector>
-namespace boost::posix_time {
- class time_duration;
-}
-
namespace ODBC {
class Connection;
using ParamPtr = std::unique_ptr<Param>;
diff --git a/libodbcpp/odbc-param.cpp b/libodbcpp/odbc-param.cpp
index a7c719c..e69e848 100644
--- a/libodbcpp/odbc-param.cpp
+++ b/libodbcpp/odbc-param.cpp
@@ -6,7 +6,6 @@
#include <boost/date_time/date.hpp>
#include <boost/date_time/gregorian_calendar.hpp>
#include <boost/date_time/time.hpp>
-#include <boost/date_time/time_system_counted.hpp>
#include <memory>
#include <sqlext.h>
diff --git a/libodbcpp/odbc-param.h b/libodbcpp/odbc-param.h
index 45cdd25..32d3f99 100644
--- a/libodbcpp/odbc-param.h
+++ b/libodbcpp/odbc-param.h
@@ -2,7 +2,6 @@
#define ODBC_PARAM_H
#include "odbc-param_fwd.h"
-#include <boost/date_time/posix_time/posix_time_types.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma GCC diagnostic ignored "-Wsign-conversion"
@@ -11,8 +10,7 @@
#endif
#include <glibmm/ustring.h>
#pragma GCC diagnostic pop
-#include <boost/date_time/posix_time/posix_time_config.hpp>
-#include <boost/date_time/posix_time/ptime.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
#include <sql.h>
#include <sqlext.h>
#include <string>
diff --git a/libodbcpp/unittests/testodbc.cpp b/libodbcpp/unittests/testodbc.cpp
index 9efbb52..be27888 100644
--- a/libodbcpp/unittests/testodbc.cpp
+++ b/libodbcpp/unittests/testodbc.cpp
@@ -2,8 +2,7 @@
#include <boost/test/unit_test.hpp>
#include "mockDatabase.h"
-#include <boost/date_time/posix_time/conversion.hpp>
-#include <boost/date_time/posix_time/ptime.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
#include <connection.h>
#include <cstdint>
#include <definedDirs.h>