Mercurial > hg > orthanc-postgresql
changeset 80:2605ebf75cf8
fix build with Orthanc 0.9.4
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Oct 2015 12:01:30 +0100 |
parents | c16615029c9f |
children | 63187f392416 |
files | IndexPlugin/PostgreSQLWrapper.cpp IndexPlugin/PostgreSQLWrapper.h |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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<int64_t>& 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<int64_t>& 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,