# HG changeset patch # User Sebastien Jodogne # Date 1546089703 -3600 # Node ID 3db9697a0a58bbdba8ed302d31473d7bce17fe9d # Parent ad37c21ec4db20fe2a61202a755332d0134c740a cosmetic diff -r ad37c21ec4db -r 3db9697a0a58 Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Sat Dec 29 14:16:43 2018 +0100 +++ b/Core/HttpServer/MongooseServer.cpp Sat Dec 29 14:21:43 2018 +0100 @@ -42,10 +42,10 @@ #include "HttpToolbox.h" #if ORTHANC_ENABLE_MONGOOSE == 1 -# include "mongoose.h" +# include #elif ORTHANC_ENABLE_CIVETWEB == 1 -# include "civetweb.h" +# include # define MONGOOSE_USE_CALLBACKS 1 #else @@ -605,7 +605,7 @@ // deprecated in Civetweb, using "remote_addr" instead. localhost = (std::string(request->remote_addr) == "127.0.0.1"); #else -#error +# error #endif // Check remote calls @@ -676,7 +676,7 @@ const char* remoteIp = request->remote_addr; const char* requestUri = request->local_uri; #else -#error +# error #endif if (requestUri == NULL) @@ -792,7 +792,7 @@ void *that = mg_get_user_data(mg_get_context(connection)); const char* requestUri = request->local_uri; #else -#error +# error #endif if (requestUri == NULL) @@ -907,7 +907,7 @@ } #else -#error Please set MONGOOSE_USE_CALLBACKS +# error Please set MONGOOSE_USE_CALLBACKS #endif @@ -966,7 +966,7 @@ #elif ORTHANC_ENABLE_CIVETWEB == 1 LOG(INFO) << "Starting embedded Web server using Civetweb"; #else -#error +# error #endif if (!IsRunning()) @@ -1011,7 +1011,7 @@ pimpl_->context_ = mg_start(&callbacks, this, options); #else -#error Please set MONGOOSE_USE_CALLBACKS +# error Please set MONGOOSE_USE_CALLBACKS #endif if (!pimpl_->context_)