diff Core/HttpClient.h @ 2137:595cf22b3e7e

safety checks of macros
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 15:07:50 +0100
parents 58a0ee0b4be1
children a3a65de1840f
line wrap: on
line diff
--- a/Core/HttpClient.h	Wed Nov 09 14:08:05 2016 +0100
+++ b/Core/HttpClient.h	Wed Nov 09 15:07:50 2016 +0100
@@ -39,6 +39,15 @@
 #include <boost/shared_ptr.hpp>
 #include <json/json.h>
 
+#if !defined(ORTHANC_ENABLE_SSL)
+#  error The macro ORTHANC_ENABLE_SSL must be defined
+#endif
+
+#if !defined(ORTHANC_ENABLE_PKCS11)
+#  error The macro ORTHANC_ENABLE_PKCS11 must be defined
+#endif
+
+
 namespace Orthanc
 {
   class HttpClient