# HG changeset patch # User Sebastien Jodogne # Date 1776144842 -7200 # Node ID 5c2746e898dd60e0f2322ea48acaa73a292edfde # Parent 3f961faf25b174477905c7a516567ed6e9eaa21c fix build with framework 1.12.11 diff -r 3f961faf25b1 -r 5c2746e898dd Framework/PushMode/ActivePushTransactions.cpp --- a/Framework/PushMode/ActivePushTransactions.cpp Tue Jan 27 17:22:34 2026 +0100 +++ b/Framework/PushMode/ActivePushTransactions.cpp Tue Apr 14 07:34:02 2026 +0200 @@ -26,6 +26,10 @@ #include // For std::unique_ptr #include +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11) +# include +#endif + namespace OrthancPlugins { @@ -35,7 +39,13 @@ DownloadArea area_; std::vector buckets_; BucketCompression compression_; + +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11) + Orthanc::ElapsedTimer lifeSpanTimer_; +#else Orthanc::Toolbox::ElapsedTimer lifeSpanTimer_; +#endif + public: Transaction(const std::vector& instances, const std::vector& buckets, @@ -96,7 +106,11 @@ assert(found->second != NULL); if (commit) { +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11) + Orthanc::ElapsedTimer timer; +#else Orthanc::Toolbox::ElapsedTimer timer; +#endif totalReceivedBytesCount_ += found->second->GetDownloadArea().GetTotalSize(); totalTimeSpentInReceptionMs_ += found->second->GetLifespanMs(); // don't take the commit phase into account ! diff -r 3f961faf25b1 -r 5c2746e898dd Framework/TransferBucket.cpp --- a/Framework/TransferBucket.cpp Tue Jan 27 17:22:34 2026 +0100 +++ b/Framework/TransferBucket.cpp Tue Apr 14 07:34:02 2026 +0200 @@ -24,6 +24,8 @@ #include #include +#include + namespace OrthancPlugins {