changeset 749:4f6da1267585

fix build with framework 1.12.11
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 14 Apr 2026 07:18:24 +0200
parents 80e8dba83cdf
children 29a2cfb72b08
files Plugin/WadoRs.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/WadoRs.cpp	Fri Mar 20 19:10:58 2026 +0100
+++ b/Plugin/WadoRs.cpp	Tue Apr 14 07:18:24 2026 +0200
@@ -35,6 +35,7 @@
 #include <Compression/GzipCompressor.h>
 
 #if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11)
+#  include <ElapsedTimer.h>
 #  include <MultiThreading/BlockingSharedMessageQueue.h>
 #endif
 
@@ -631,7 +632,12 @@
                                        bool transcode,
                                        Orthanc::DicomTransferSyntax targetSyntax /* only if transcoding */)
 {
+#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 11)
+  Orthanc::ElapsedTimer perfTimer;
+#else
   Orthanc::Toolbox::ElapsedTimer perfTimer;
+#endif
+
   size_t perfTotalSizeInBytes = 0;
   size_t perfTotalInstancesCount = 0;