comparison OrthancFramework/Sources/Pkcs11.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 0ea402b4d901
comparison
equal deleted inserted replaced
5072:b23a4bb18065 5073:859f3668c181
41 } 41 }
42 42
43 #include <openssl/engine.h> 43 #include <openssl/engine.h>
44 44
45 #if OPENSSL_VERSION_NUMBER < 0x30000000L 45 #if OPENSSL_VERSION_NUMBER < 0x30000000L
46 # warning You are linking Orthanc against OpenSSL 1.x, whose license is incompatible with the GPLv3+ used by Orthanc. Please update to OpenSSL 3.x, that uses the Apache 2 license. 46 # if defined(_MSC_VER)
47 # pragma message("You are linking Orthanc against OpenSSL 1.x, whose license is incompatible with the GPLv3+ used by Orthanc. Please update to OpenSSL 3.x, that uses the Apache 2 license.")
48 # else
49 # warning You are linking Orthanc against OpenSSL 1.x, whose license is incompatible with the GPLv3+ used by Orthanc. Please update to OpenSSL 3.x, that uses the Apache 2 license.
50 # endif
47 #endif 51 #endif
48 52
49 53
50 namespace Orthanc 54 namespace Orthanc
51 { 55 {