# HG changeset patch # User Sebastien Jodogne # Date 1572879506 -3600 # Node ID 36c0ce0188cc5e3aac4554fb9fa39216b08bd224 # Parent 4d809b2e1141d0d2b73ee43303bc6b6f1a290127 safeguarding inclusion of ParsedDicomFile diff -r 4d809b2e1141 -r 36c0ce0188cc Core/DicomParsing/ParsedDicomFile.h --- a/Core/DicomParsing/ParsedDicomFile.h Mon Nov 04 15:18:38 2019 +0100 +++ b/Core/DicomParsing/ParsedDicomFile.h Mon Nov 04 15:58:26 2019 +0100 @@ -53,6 +53,14 @@ # error The macro ORTHANC_SANDBOXED must be defined #endif +#if !defined(ORTHANC_ENABLE_DCMTK) +# error The macro ORTHANC_ENABLE_DCMTK must be defined +#endif + +#if ORTHANC_ENABLE_DCMTK != 1 +# error The macro ORTHANC_ENABLE_DCMTK must be set to 1 to use this file +#endif + #include "ITagVisitor.h" #include "../DicomFormat/DicomInstanceHasher.h" #include "../Images/ImageAccessor.h"