diff Core/Images/JpegErrorManager.h @ 2379:4900688827a8

reorganization in CMake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Aug 2017 18:07:03 +0200
parents a3a65de1840f
children 878b59270859
line wrap: on
line diff
--- a/Core/Images/JpegErrorManager.h	Mon Aug 28 15:02:27 2017 +0200
+++ b/Core/Images/JpegErrorManager.h	Mon Aug 28 18:07:03 2017 +0200
@@ -32,6 +32,14 @@
 
 #pragma once
 
+#if !defined(ORTHANC_ENABLE_JPEG)
+#  error The macro ORTHANC_ENABLE_JPEG must be defined
+#endif
+
+#if ORTHANC_ENABLE_JPEG != 1
+#  error JPEG support must be enabled to include this file
+#endif
+
 #include <string.h>
 #include <stdio.h>
 #include <jpeglib.h>