changeset 3558:36c0ce0188cc

safeguarding inclusion of ParsedDicomFile
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2019 15:58:26 +0100
parents 4d809b2e1141
children fb759c9efd73
files Core/DicomParsing/ParsedDicomFile.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
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"