changeset 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 581d87e25536
children 9bf2f9e0af47
files OrthancFramework/Sources/HttpServer/HttpServer.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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