comparison Plugins/Engine/OrthancPlugins.cpp @ 3118:8849677c2cbc

compatibility with dcmtk 3.6.4
author s.jodogne@gmail.com
date Sun, 13 Jan 2019 20:16:43 +0100
parents 4e43e67f8ecf
children a323b75e5b08
comparison
equal deleted inserted replaced
3117:c8b75e207a82 3118:8849677c2cbc
36 36
37 #if ORTHANC_ENABLE_PLUGINS != 1 37 #if ORTHANC_ENABLE_PLUGINS != 1
38 #error The plugin support is disabled 38 #error The plugin support is disabled
39 #endif 39 #endif
40 40
41 #if !defined(DCMTK_VERSION_NUMBER)
42 # error The macro DCMTK_VERSION_NUMBER must be defined
43 #endif
44
41 45
42 #include "../../Core/ChunkedBuffer.h" 46 #include "../../Core/ChunkedBuffer.h"
43 #include "../../Core/DicomFormat/DicomArray.h" 47 #include "../../Core/DicomFormat/DicomArray.h"
44 #include "../../Core/HttpServer/HttpToolbox.h" 48 #include "../../Core/HttpServer/HttpToolbox.h"
45 #include "../../Core/Logging.h" 49 #include "../../Core/Logging.h"
2414 { 2418 {
2415 } 2419 }
2416 2420
2417 ~DictionaryReadLocker() 2421 ~DictionaryReadLocker()
2418 { 2422 {
2423 #if DCMTK_VERSION_NUMBER >= 364
2424 dcmDataDict.rdunlock();
2425 #else
2419 dcmDataDict.unlock(); 2426 dcmDataDict.unlock();
2427 #endif
2420 } 2428 }
2421 2429
2422 const DcmDataDictionary* operator->() 2430 const DcmDataDictionary* operator->()
2423 { 2431 {
2424 return &dictionary_; 2432 return &dictionary_;