# HG changeset patch # User Sebastien Jodogne # Date 1610610648 -3600 # Node ID 6a6017027162639a4b6ff52485ad9de159b8f273 # Parent 581d87e255363ff933a04bcc220f3a7a74d3a45d "#warning" is not available on Visual Studio diff -r 581d87e25536 -r 6a6017027162 OrthancFramework/Sources/HttpServer/HttpServer.cpp --- a/OrthancFramework/Sources/HttpServer/HttpServer.cpp Wed Jan 13 18:48:53 2021 +0100 +++ b/OrthancFramework/Sources/HttpServer/HttpServer.cpp Thu Jan 14 08:50:48 2021 +0100 @@ -123,7 +123,9 @@ # if CIVETWEB_HAS_DISABLE_KEEP_ALIVE == 1 mg_disable_keep_alive(connection_); # else +# if defined(__GNUC__) || defined(__clang__) # warning The function "mg_disable_keep_alive()" is not available, DICOMweb might run slowly +# endif throw OrthancException(ErrorCode_NotImplemented, "Only available if using a patched version of CivetWeb"); # endif