diff Core/DicomParsing/ParsedDicomFile.h @ 3558:36c0ce0188cc

safeguarding inclusion of ParsedDicomFile
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2019 15:58:26 +0100
parents 63f59ad9381a
children 33cfcc74d1b1
line wrap: on
line diff
--- 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"