Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Toolbox.cpp Mon Aug 15 22:13:39 2022 +0200 +++ b/OrthancFramework/Sources/Toolbox.cpp Tue Aug 16 11:06:25 2022 +0200 @@ -96,7 +96,11 @@ # include <openssl/ssl.h> # if OPENSSL_VERSION_NUMBER < 0x30000000L -# 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. +# if defined(_MSC_VER) +# 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.") +# else +# 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. +# endif # endif #endif