# HG changeset patch # User Sebastien Jodogne # Date 1446116490 -3600 # Node ID 2605ebf75cf8253d6f29d3065990b863b9dfaeee # Parent c16615029c9f28fdcad36cd35059d74d3bbe7b76 fix build with Orthanc 0.9.4 diff -r c16615029c9f -r 2605ebf75cf8 IndexPlugin/PostgreSQLWrapper.cpp --- a/IndexPlugin/PostgreSQLWrapper.cpp Thu Oct 29 11:52:22 2015 +0100 +++ b/IndexPlugin/PostgreSQLWrapper.cpp Thu Oct 29 12:01:30 2015 +0100 @@ -997,6 +997,7 @@ } +#if !(ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER <= 0 && ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER <= 9 && ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER <= 4) static std::string ConvertWildcardToLike(const std::string& query) { std::string s = query; @@ -1123,7 +1124,7 @@ result.Step(); } } - +#endif diff -r c16615029c9f -r 2605ebf75cf8 IndexPlugin/PostgreSQLWrapper.h --- a/IndexPlugin/PostgreSQLWrapper.h Thu Oct 29 11:52:22 2015 +0100 +++ b/IndexPlugin/PostgreSQLWrapper.h Thu Oct 29 12:01:30 2015 +0100 @@ -232,6 +232,7 @@ virtual void LookupIdentifier(std::list& result, const char* value); +#if !(ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER <= 0 && ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER <= 9 && ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER <= 4) // Used only if Orthanc >= 0.9.5 virtual void LookupIdentifier(std::list& result, OrthancPluginResourceType level, @@ -239,6 +240,7 @@ uint16_t element, OrthancPluginIdentifierConstraint constraint, const char* value); +#endif virtual bool LookupMetadata(std::string& target, int64_t id,