# HG changeset patch # User Sebastien Jodogne # Date 1597157854 -7200 # Node ID 99927401587c4cd400df1ec045918d2594050955 # Parent 0ddc5297a8ab8874aa913af0cb87e4eb01de7068 define ORTHANC_FRAMEWORK_VERSION_IS_ABOVE even if Orthanc framework is statically linked diff -r 0ddc5297a8ab -r 99927401587c OrthancFramework/Sources/OrthancFramework.h --- a/OrthancFramework/Sources/OrthancFramework.h Fri Aug 07 10:46:50 2020 +0200 +++ b/OrthancFramework/Sources/OrthancFramework.h Tue Aug 11 16:57:34 2020 +0200 @@ -60,6 +60,14 @@ #endif +#define ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(major, minor, revision) \ + (ORTHANC_VERSION_MAJOR > major || \ + (ORTHANC_VERSION_MAJOR == major && \ + (ORTHANC_VERSION_MINOR > minor || \ + (ORTHANC_VERSION_MINOR == minor && \ + ORTHANC_VERSION_REVISION >= revision)))) + + #include namespace Orthanc