changeset 2425:59b7aa77a8da

compatibility of GDCM sample with Orthanc SDK <= 1.3.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Oct 2017 12:44:58 +0200
parents 7ef9207f31d4
children 23f5ff059ce2
files Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp	Tue Oct 10 12:38:02 2017 +0200
+++ b/Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp	Tue Oct 10 12:44:58 2017 +0200
@@ -32,6 +32,17 @@
 #include <boost/iostreams/device/array.hpp>
 
 
+// This is for compatibility with Orthanc SDK <= 1.3.0
+#if !defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE)
+#define ORTHANC_PLUGINS_VERSION_IS_ABOVE(major, minor, revision) \
+  (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER > major ||               \
+   (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == major &&             \
+    (ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER > minor ||             \
+     (ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER == minor &&           \
+      ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER >= revision))))
+#endif
+
+
 namespace OrthancPlugins
 {
   struct GdcmImageDecoder::PImpl