Mercurial > hg > orthanc
diff Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2996:d547f998c947 db-changes
integration mainline->db-changes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 Dec 2018 20:33:13 +0100 |
parents | 9cc3d40e389b |
children | c358bdb37c13 |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Thu Dec 06 15:58:08 2018 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Mon Dec 10 20:33:13 2018 +0100 @@ -71,7 +71,7 @@ # define HAS_ORTHANC_PLUGIN_JOB 0 #endif -#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 4, 3) +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 0) # define HAS_ORTHANC_PLUGIN_EXCEPTION_DETAILS 1 #else # define HAS_ORTHANC_PLUGIN_EXCEPTION_DETAILS 0 @@ -492,8 +492,9 @@ void AnswerMethodNotAllowed(OrthancPluginRestOutput* output, const char* allowedMethods); - const char* GetMimeType(const std::string& path); - +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 0) + const char* AutodetectMimeType(const std::string& path); +#endif void LogError(const std::string& message);