Mercurial > hg > orthanc
diff OrthancFramework/Sources/HttpServer/HttpServer.cpp @ 4449:6a6017027162
"#warning" is not available on Visual Studio
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 14 Jan 2021 08:50:48 +0100 |
parents | d9473bd5ed43 |
children | f20a7655fb1c |
line wrap: on
line diff
--- 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