Mercurial > hg > orthanc-databases
changeset 804:1f93acd88206
fix build with framework 1.12.11
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 14 Apr 2026 07:16:36 +0200 |
| parents | accca9ae6111 |
| children | f3a5e814d752 b492e1535737 |
| files | Framework/Odbc/OdbcPreparedStatement.cpp Framework/Plugins/IndexBackend.cpp |
| diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Odbc/OdbcPreparedStatement.cpp Sat Apr 11 10:55:42 2026 +0200 +++ b/Framework/Odbc/OdbcPreparedStatement.cpp Tue Apr 14 07:16:36 2026 +0200 @@ -31,6 +31,7 @@ #include <Logging.h> #include <OrthancException.h> +#include <cassert> #include <sqlext.h>
--- a/Framework/Plugins/IndexBackend.cpp Sat Apr 11 10:55:42 2026 +0200 +++ b/Framework/Plugins/IndexBackend.cpp Tue Apr 14 07:16:36 2026 +0200 @@ -34,6 +34,10 @@ #include <OrthancException.h> #include <Toolbox.h> +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11) +# include <ElapsedTimer.h> +#endif + #include <boost/algorithm/string/join.hpp> @@ -3245,7 +3249,11 @@ { DatabaseManager::StandaloneStatement statement(manager, "SELECT 1"); +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11) + Orthanc::ElapsedTimer timer; +#else Orthanc::Toolbox::ElapsedTimer timer; +#endif statement.ExecuteWithoutResult();
