diff Plugins/OrthancCPlugin/OrthancCPlugin.h @ 1136:208dc67b9bab

sample custom storage plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Sep 2014 16:47:04 +0200
parents 67c3c1e4a6e0
children d9c27f9f1a51
line wrap: on
line diff
--- a/Plugins/OrthancCPlugin/OrthancCPlugin.h	Tue Sep 09 15:55:43 2014 +0200
+++ b/Plugins/OrthancCPlugin/OrthancCPlugin.h	Tue Sep 09 16:47:04 2014 +0200
@@ -1508,7 +1508,13 @@
     params.create_ = create;
     params.read_ = read;
     params.remove_ = remove;
+
+#ifdef  __cplusplus
     params.free_ = free;
+#else
+    params.free_ = ::free;
+#endif
+
     context->InvokeService(context, _OrthancPluginService_RegisterStorageArea, &params);
   }