From afcbd517bc5bd4329a5cb8283f4d0e8b75562c03 Mon Sep 17 00:00:00 2001 From: axxel Date: Mon, 2 Sep 2024 23:26:09 +0200 Subject: [PATCH] Barcode: fix missing symbol error with EXPERIMENTAL_API but no ZINT --- core/src/Barcode.cpp | 4 +++- core/src/Barcode.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/Barcode.cpp b/core/src/Barcode.cpp index 7163c1f480..41b2137d36 100644 --- a/core/src/Barcode.cpp +++ b/core/src/Barcode.cpp @@ -12,7 +12,6 @@ #ifdef ZXING_EXPERIMENTAL_API #include "BitMatrix.h" -#endif #ifdef ZXING_USE_ZINT #include @@ -22,6 +21,9 @@ void zint_symbol_deleter::operator()(zint_symbol* p) const noexcept } #else struct zint_symbol {}; +void zint_symbol_deleter::operator()(zint_symbol*) const noexcept {} +#endif + #endif #include diff --git a/core/src/Barcode.h b/core/src/Barcode.h index f7ac4608d3..051205ae41 100644 --- a/core/src/Barcode.h +++ b/core/src/Barcode.h @@ -18,11 +18,11 @@ #ifdef ZXING_EXPERIMENTAL_API #include -extern "C" struct zint_symbol; namespace ZXing { class BitMatrix; } +extern "C" struct zint_symbol; struct zint_symbol_deleter { void operator()(zint_symbol* p) const noexcept;