From ec1f3b919b74378c902c9f128f3f4576c8ee4c2a Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Wed, 25 Dec 2024 19:08:33 +0100 Subject: [PATCH] more guards --- src/odr/internal/open_strategy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/odr/internal/open_strategy.cpp b/src/odr/internal/open_strategy.cpp index de265920..335efd43 100644 --- a/src/odr/internal/open_strategy.cpp +++ b/src/odr/internal/open_strategy.cpp @@ -250,6 +250,7 @@ open_strategy::open_file(std::shared_ptr file, FileType as, } return nullptr; } +#ifdef ODR_WITH_WVWARE if (with == DecoderEngine::wvware) { try { auto memory_file = std::make_shared(*file); @@ -259,6 +260,7 @@ open_strategy::open_file(std::shared_ptr file, FileType as, } return nullptr; } +#endif return nullptr; } @@ -270,6 +272,7 @@ open_strategy::open_file(std::shared_ptr file, FileType as, } return nullptr; } +#ifdef ODR_WITH_PDF2HTMLEX if (with == DecoderEngine::poppler) { try { auto memory_file = std::make_shared(*file); @@ -278,6 +281,7 @@ open_strategy::open_file(std::shared_ptr file, FileType as, } return nullptr; } +#endif return nullptr; }