changeset 2985:32ec5078e32b

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 09:20:57 +0100
parents db8f360fcb41
children b1ba0a8311b5
files Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Plugins/Samples/Common/OrthancPluginCppWrapper.h
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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);