Mercurial > hg > orthanc-databases
comparison 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 |
comparison
equal
deleted
inserted
replaced
564:3a83c434b284 | 565:373cf7d747cc |
---|---|
22 | 22 |
23 | 23 |
24 #pragma once | 24 #pragma once |
25 | 25 |
26 #include <orthanc/OrthancCDatabasePlugin.h> | 26 #include <orthanc/OrthancCDatabasePlugin.h> |
27 #include <OrthancDatabasePlugin.pb.h> | |
27 | 28 |
28 // Ensure that "ORTHANC_PLUGINS_VERSION_IS_ABOVE" is defined | 29 // Ensure that "ORTHANC_PLUGINS_VERSION_IS_ABOVE" is defined |
29 #include "../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" | 30 #include "../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" |
30 | |
31 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in Orthanc 1.3.1 | |
32 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | |
33 # include <OrthancDatabasePlugin.pb.h> | |
34 # endif | |
35 #endif | |
36 | |
37 | 31 |
38 #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 | 32 #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 |
39 | 33 |
40 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) | 34 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) |
41 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 2) | 35 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 2) |
49 | 43 |
50 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) | 44 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) |
51 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | 45 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) |
52 # undef ORTHANC_PLUGINS_HAS_INTEGRATED_FIND | 46 # undef ORTHANC_PLUGINS_HAS_INTEGRATED_FIND |
53 # define ORTHANC_PLUGINS_HAS_INTEGRATED_FIND 1 | 47 # define ORTHANC_PLUGINS_HAS_INTEGRATED_FIND 1 |
48 # endif | |
49 #endif | |
50 | |
51 | |
52 #define ORTHANC_PLUGINS_HAS_CHANGES_EXTENDED 0 | |
53 | |
54 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) | |
55 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 5) | |
56 # undef ORTHANC_PLUGINS_HAS_CHANGES_EXTENDED | |
57 # define ORTHANC_PLUGINS_HAS_CHANGES_EXTENDED 1 | |
54 # endif | 58 # endif |
55 #endif | 59 #endif |
56 | 60 |
57 | 61 |
58 #include <Enumerations.h> | 62 #include <Enumerations.h> |