diff Core/Compression/DeflateBaseCompressor.h @ 2508:91ee08d986f9

possibility to disable zlib support in the Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Mar 2018 11:24:17 +0200
parents 878b59270859
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Core/Compression/DeflateBaseCompressor.h	Mon Mar 26 18:31:40 2018 +0200
+++ b/Core/Compression/DeflateBaseCompressor.h	Wed Mar 28 11:24:17 2018 +0200
@@ -35,6 +35,15 @@
 
 #include "IBufferCompressor.h"
 
+#if !defined(ORTHANC_ENABLE_ZLIB)
+#  error The macro ORTHANC_ENABLE_ZLIB must be defined
+#endif
+
+#if ORTHANC_ENABLE_ZLIB != 1
+#  error ZLIB support must be enabled to include this file
+#endif
+
+
 #include <stdint.h>
 
 namespace Orthanc