# HG changeset patch # User Sebastien Jodogne # Date 1749729755 -7200 # Node ID 08ebec631f7426f93a1ff0de51b47fbe232d0ec5 # Parent e6f14f12117c95c622c2be7038d4df85e89f7db6 fix usage of macros diff -r e6f14f12117c -r 08ebec631f74 Framework/Plugins/DatabaseBackendAdapterV4.cpp --- a/Framework/Plugins/DatabaseBackendAdapterV4.cpp Wed Jun 11 20:41:00 2025 +0200 +++ b/Framework/Plugins/DatabaseBackendAdapterV4.cpp Thu Jun 12 14:02:35 2025 +0200 @@ -291,7 +291,7 @@ lookupAttachment_->mutable_attachment()->set_compression_type(compressionType); lookupAttachment_->mutable_attachment()->set_compressed_size(compressedSize); lookupAttachment_->mutable_attachment()->set_compressed_hash(compressedHash); -#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA==1 +#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA == 1 lookupAttachment_->mutable_attachment()->set_custom_data(customData); #endif } @@ -702,7 +702,7 @@ case Orthanc::DatabasePluginMessages::OPERATION_ADD_ATTACHMENT: { -#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA +#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA == 1 backend.AddAttachment(response, manager, request.add_attachment()); #else OrthancPluginAttachment attachment; diff -r e6f14f12117c -r 08ebec631f74 Framework/Plugins/IDatabaseBackend.h --- a/Framework/Plugins/IDatabaseBackend.h Wed Jun 11 20:41:00 2025 +0200 +++ b/Framework/Plugins/IDatabaseBackend.h Thu Jun 12 14:02:35 2025 +0200 @@ -70,7 +70,7 @@ const OrthancPluginAttachment& attachment, int64_t revision) = 0; -#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA +#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA == 1 // New in Orthanc 1.12.7 virtual void AddAttachment(Orthanc::DatabasePluginMessages::TransactionResponse& response, DatabaseManager& manager, diff -r e6f14f12117c -r 08ebec631f74 Framework/Plugins/IndexBackend.cpp --- a/Framework/Plugins/IndexBackend.cpp Wed Jun 11 20:41:00 2025 +0200 +++ b/Framework/Plugins/IndexBackend.cpp Thu Jun 12 14:02:35 2025 +0200 @@ -411,7 +411,7 @@ attachment.compressionType, attachment.compressedSize, attachment.compressedHash, NULL, 0, revision); } -#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA +#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA == 1 void IndexBackend::AddAttachment(Orthanc::DatabasePluginMessages::TransactionResponse& response, DatabaseManager& manager, const Orthanc::DatabasePluginMessages::AddAttachment_Request& request) diff -r e6f14f12117c -r 08ebec631f74 Framework/Plugins/IndexBackend.h --- a/Framework/Plugins/IndexBackend.h Wed Jun 11 20:41:00 2025 +0200 +++ b/Framework/Plugins/IndexBackend.h Thu Jun 12 14:02:35 2025 +0200 @@ -110,7 +110,7 @@ const OrthancPluginAttachment& attachment, int64_t revision) ORTHANC_OVERRIDE; -#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA +#if ORTHANC_PLUGINS_HAS_ATTACHMENTS_CUSTOM_DATA == 1 // New in Orthanc 1.12.7 virtual void AddAttachment(Orthanc::DatabasePluginMessages::TransactionResponse& response, DatabaseManager& manager,