diff Framework/Plugins/IndexBackend.h @ 271:6b18d3fbee82

backward compatibility with Orthanc SDK 0.9.5
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 22 Apr 2021 10:41:29 +0200
parents b0c65094b299
children 16aac0287485 cd9521e04249
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.h	Wed Apr 21 17:56:43 2021 +0200
+++ b/Framework/Plugins/IndexBackend.h	Thu Apr 22 10:41:29 2021 +0200
@@ -358,6 +358,7 @@
     }
 #endif
 
+#if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1
     // This function corresponds to
     // "Orthanc::Compatibility::ICreateInstance::Apply()"
     void CreateInstanceGeneric(OrthancPluginCreateInstanceResult& result,
@@ -366,6 +367,7 @@
                                const char* hashStudy,
                                const char* hashSeries,
                                const char* hashInstance);
+#endif
 
     bool LookupGlobalIntegerProperty(int& target /*out*/,
                                      DatabaseManager& manager,