changeset 6323:d2b63ea23719

fix build with older versions of dcmtk
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 23 Sep 2025 12:03:51 +0200
parents e3a855dc1ebf
children e937476ccfff
files OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp OrthancFramework/Sources/JobsEngine/JobStepResult.h
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp	Tue Sep 23 11:27:53 2025 +0200
+++ b/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp	Tue Sep 23 12:03:51 2025 +0200
@@ -35,6 +35,14 @@
 #include <dcmtk/dcmdata/dcdeftag.h>
 #include <dcmtk/dcmnet/diutil.h>
 
+#if DCMTK_VERSION_NUMBER < 366
+#define STATUS_GET_Pending_SubOperationsAreContinuing                   0xff00
+#define STATUS_GET_Success                                              0x0000
+#define STATUS_MOVE_Pending_SubOperationsAreContinuing                  0xff00
+#define STATUS_MOVE_Success_SubOperationsCompleteNoFailures             0x0000
+#endif
+
+
 namespace Orthanc
 {
   static void TestAndCopyTag(DicomMap& result,
--- a/OrthancFramework/Sources/JobsEngine/JobStepResult.h	Tue Sep 23 11:27:53 2025 +0200
+++ b/OrthancFramework/Sources/JobsEngine/JobStepResult.h	Tue Sep 23 12:03:51 2025 +0200
@@ -25,7 +25,9 @@
 #pragma once
 
 #include "../Enumerations.h"
+
 #include <json/value.h>
+#include <stdint.h>
 
 namespace Orthanc
 {