# HG changeset patch # User Sebastien Jodogne # Date 1544430057 -3600 # Node ID 32ec5078e32b28648bc7ae08937170c684174d64 # Parent db8f360fcb411555ab485c974ee191009e1c3fa1 fix diff -r db8f360fcb41 -r 32ec5078e32b Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Sat Dec 08 20:59:37 2018 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Mon Dec 10 09:20:57 2018 +0100 @@ -1357,6 +1357,7 @@ } +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 4, 3) const char* AutodetectMimeType(const std::string& path) { const char* mime = OrthancPluginAutodetectMimeType(GetGlobalContext(), path.c_str()); @@ -1371,6 +1372,7 @@ return mime; } } +#endif #if HAS_ORTHANC_PLUGIN_PEERS == 1 diff -r db8f360fcb41 -r 32ec5078e32b Plugins/Samples/Common/OrthancPluginCppWrapper.h --- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Sat Dec 08 20:59:37 2018 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Mon Dec 10 09:20:57 2018 +0100 @@ -492,7 +492,9 @@ void AnswerMethodNotAllowed(OrthancPluginRestOutput* output, const char* allowedMethods); +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 4, 3) const char* AutodetectMimeType(const std::string& path); +#endif void LogError(const std::string& message);