diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2985:32ec5078e32b

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 09:20:57 +0100
parents db8f360fcb41
children 9cc3d40e389b
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