diff Core/HttpServer/MongooseServer.cpp @ 2137:595cf22b3e7e

safety checks of macros
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 15:07:50 +0100
parents dd609a99d39a
children a3a65de1840f
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Wed Nov 09 14:08:05 2016 +0100
+++ b/Core/HttpServer/MongooseServer.cpp	Wed Nov 09 15:07:50 2016 +0100
@@ -49,6 +49,10 @@
 #include <stdio.h>
 #include <boost/thread.hpp>
 
+#if !defined(ORTHANC_ENABLE_SSL)
+#  error The macro ORTHANC_ENABLE_SSL must be defined
+#endif
+
 #if ORTHANC_ENABLE_SSL == 1
 #include <openssl/opensslv.h>
 #endif