changeset 4141:99927401587c

define ORTHANC_FRAMEWORK_VERSION_IS_ABOVE even if Orthanc framework is statically linked
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2020 16:57:34 +0200
parents 0ddc5297a8ab
children 0ea450e1f0ea
files OrthancFramework/Sources/OrthancFramework.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <string>
 
 namespace Orthanc