comparison Framework/Plugins/DatabaseConstraint.h @ 548:25005693297b

removed unnecessary macro ORTHANC_BUILDING_SERVER_LIBRARY
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Sep 2024 13:22:44 +0200
parents b8e6e7a19424
children e620f36b8e09
comparison
equal deleted inserted replaced
547:b8e6e7a19424 548:25005693297b
28 **/ 28 **/
29 29
30 30
31 #pragma once 31 #pragma once
32 32
33 #if !defined(ORTHANC_BUILDING_SERVER_LIBRARY)
34 # error Macro ORTHANC_BUILDING_SERVER_LIBRARY must be defined
35 #endif
36
37 #if ORTHANC_BUILDING_SERVER_LIBRARY == 1
38 # include "../../../OrthancFramework/Sources/DicomFormat/DicomMap.h"
39 #else
40 // This is for the "orthanc-databases" project to reuse this file
41 # include <DicomFormat/DicomMap.h>
42 #endif
43
44 #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0 33 #define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 0
45 34
46 #if ORTHANC_ENABLE_PLUGINS == 1 35 #if ORTHANC_ENABLE_PLUGINS == 1
47 # include <orthanc/OrthancCDatabasePlugin.h> 36 # include <orthanc/OrthancCDatabasePlugin.h>
48 # if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in 1.3.1 37 # if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in 1.3.1
50 # undef ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 39 # undef ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT
51 # define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 1 40 # define ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT 1
52 # endif 41 # endif
53 # endif 42 # endif
54 #endif 43 #endif
44
45 #include <DicomFormat/DicomMap.h>
55 46
56 #include <deque> 47 #include <deque>
57 48
58 namespace Orthanc 49 namespace Orthanc
59 { 50 {