Mercurial > hg > orthanc-databases
diff Framework/Plugins/MessagesToolbox.h @ 565:373cf7d747cc find-refactoring
fix build against orthanc mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 22 Sep 2024 10:03:36 +0200 |
parents | 1a74fc1bea2d |
children |
line wrap: on
line diff
--- a/Framework/Plugins/MessagesToolbox.h Fri Sep 20 18:36:52 2024 +0200 +++ b/Framework/Plugins/MessagesToolbox.h Sun Sep 22 10:03:36 2024 +0200 @@ -24,17 +24,11 @@ #pragma once #include <orthanc/OrthancCDatabasePlugin.h> +#include <OrthancDatabasePlugin.pb.h> // Ensure that "ORTHANC_PLUGINS_VERSION_IS_ABOVE" is defined #include "../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" -#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 -# if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) -# include <OrthancDatabasePlugin.pb.h> -# endif -#endif - - #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) @@ -55,6 +49,16 @@ #endif +#define ORTHANC_PLUGINS_HAS_CHANGES_EXTENDED 0 + +#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) +# if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) +# undef ORTHANC_PLUGINS_HAS_CHANGES_EXTENDED +# define ORTHANC_PLUGINS_HAS_CHANGES_EXTENDED 1 +# endif +#endif + + #include <Enumerations.h>