diff OrthancServer/ParsedDicomFile.h @ 2380:96b3ec054b69

reorganization in macros
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Aug 2017 16:49:44 +0200
parents b7fba68747f6
children
line wrap: on
line diff
--- a/OrthancServer/ParsedDicomFile.h	Mon Aug 28 18:07:03 2017 +0200
+++ b/OrthancServer/ParsedDicomFile.h	Tue Aug 29 16:49:44 2017 +0200
@@ -40,6 +40,14 @@
 #include "../Core/Toolbox.h"
 #include "ServerEnumerations.h"
 
+#if !defined(ORTHANC_ENABLE_JPEG)
+#  error Macro ORTHANC_ENABLE_JPEG must be defined to use this file
+#endif
+
+#if !defined(ORTHANC_ENABLE_PNG)
+#  error Macro ORTHANC_ENABLE_PNG must be defined to use this file
+#endif
+
 class DcmDataset;
 class DcmFileFormat;
 
@@ -144,8 +152,11 @@
 
     void EmbedImage(const ImageAccessor& accessor);
 
+#if (ORTHANC_ENABLE_JPEG == 1 &&  \
+     ORTHANC_ENABLE_PNG == 1)
     void EmbedImage(const std::string& mime,
                     const std::string& content);
+#endif
 
     Encoding GetEncoding() const;