comparison OrthancFramework/Sources/HttpServer/HttpServer.cpp @ 5073:859f3668c181

replaced macro "#warning" by "#pragma message" for Visual Studio
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 16 Aug 2022 11:06:25 +0200
parents 6eff25f70121
children d842e4446e63
comparison
equal deleted inserted replaced
5072:b23a4bb18065 5073:859f3668c181
73 #if ORTHANC_ENABLE_SSL == 1 73 #if ORTHANC_ENABLE_SSL == 1
74 # include <openssl/opensslv.h> 74 # include <openssl/opensslv.h>
75 # include <openssl/err.h> 75 # include <openssl/err.h>
76 76
77 # if OPENSSL_VERSION_NUMBER < 0x30000000L 77 # if OPENSSL_VERSION_NUMBER < 0x30000000L
78 # warning You are linking Orthanc against OpenSSL 1.x, whose license is incompatible with the GPLv3+ used by Orthanc >= 1.10.0. Please update to OpenSSL 3.x, that uses the Apache 2 license. 78 # if defined(_MSC_VER)
79 # pragma message("You are linking Orthanc against OpenSSL 1.x, whose license is incompatible with the GPLv3+ used by Orthanc >= 1.10.0. Please update to OpenSSL 3.x, that uses the Apache 2 license.")
80 # else
81 # warning You are linking Orthanc against OpenSSL 1.x, whose license is incompatible with the GPLv3+ used by Orthanc >= 1.10.0. Please update to OpenSSL 3.x, that uses the Apache 2 license.
82 # endif
79 # endif 83 # endif
80 84
81 #endif 85 #endif
82 86
83 #define ORTHANC_REALM "Orthanc Secure Area" 87 #define ORTHANC_REALM "Orthanc Secure Area"