comparison OrthancFramework/Sources/Toolbox.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 f630796a59b1
children 95d8e0540219
comparison
equal deleted inserted replaced
5072:b23a4bb18065 5073:859f3668c181
94 # include <openssl/err.h> 94 # include <openssl/err.h>
95 # include <openssl/evp.h> 95 # include <openssl/evp.h>
96 # include <openssl/ssl.h> 96 # include <openssl/ssl.h>
97 97
98 # if OPENSSL_VERSION_NUMBER < 0x30000000L 98 # if OPENSSL_VERSION_NUMBER < 0x30000000L
99 # 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. 99 # if defined(_MSC_VER)
100 # 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.")
101 # else
102 # 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.
103 # endif
100 # endif 104 # endif
101 105
102 #endif 106 #endif
103 107
104 108