Mercurial > hg > orthanc
diff Resources/GenerateTransferSyntaxesDcmtk.mustache @ 3769:eb044cc49d51
compatibility with DCMTK 3.6.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Mar 2020 16:36:14 +0100 |
parents | 33c19a6643e1 |
children |
line wrap: on
line diff
--- a/Resources/GenerateTransferSyntaxesDcmtk.mustache Tue Mar 17 15:02:23 2020 +0100 +++ b/Resources/GenerateTransferSyntaxesDcmtk.mustache Tue Mar 17 16:36:14 2020 +0100 @@ -45,7 +45,16 @@ #if DCMTK_VERSION_NUMBER >= {{SinceDCMTK}} {{/SinceDCMTK}} case DicomTransferSyntax_{{Value}}: + {{#DCMTK360}} +# if DCMTK_VERSION_NUMBER <= 360 + target = {{DCMTK360}}; +# else target = {{DCMTK}}; +# endif + {{/DCMTK360}} + {{^DCMTK360}} + target = {{DCMTK}}; + {{/DCMTK360}} return true; {{#SinceDCMTK}} #endif @@ -69,7 +78,16 @@ {{#SinceDCMTK}} #if DCMTK_VERSION_NUMBER >= {{SinceDCMTK}} {{/SinceDCMTK}} + {{#DCMTK360}} +# if DCMTK_VERSION_NUMBER <= 360 + case {{DCMTK360}}: +# else case {{DCMTK}}: +# endif + {{/DCMTK360}} + {{^DCMTK360}} + case {{DCMTK}}: + {{/DCMTK360}} target = DicomTransferSyntax_{{Value}}; return true; {{#SinceDCMTK}}