comparison 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
comparison
equal deleted inserted replaced
4448:581d87e25536 4449:6a6017027162
121 121
122 #elif ORTHANC_ENABLE_CIVETWEB == 1 122 #elif ORTHANC_ENABLE_CIVETWEB == 1
123 # if CIVETWEB_HAS_DISABLE_KEEP_ALIVE == 1 123 # if CIVETWEB_HAS_DISABLE_KEEP_ALIVE == 1
124 mg_disable_keep_alive(connection_); 124 mg_disable_keep_alive(connection_);
125 # else 125 # else
126 # if defined(__GNUC__) || defined(__clang__)
126 # warning The function "mg_disable_keep_alive()" is not available, DICOMweb might run slowly 127 # warning The function "mg_disable_keep_alive()" is not available, DICOMweb might run slowly
128 # endif
127 throw OrthancException(ErrorCode_NotImplemented, 129 throw OrthancException(ErrorCode_NotImplemented,
128 "Only available if using a patched version of CivetWeb"); 130 "Only available if using a patched version of CivetWeb");
129 # endif 131 # endif
130 132
131 #else 133 #else