Skip to content

Commit

Permalink
Barcode: fix missing symbol error with EXPERIMENTAL_API but no ZINT
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Sep 2, 2024
1 parent 9d615bf commit afcbd51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/src/Barcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#ifdef ZXING_EXPERIMENTAL_API
#include "BitMatrix.h"
#endif

#ifdef ZXING_USE_ZINT
#include <zint.h>
Expand All @@ -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 <cmath>
Expand Down
2 changes: 1 addition & 1 deletion core/src/Barcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

#ifdef ZXING_EXPERIMENTAL_API
#include <memory>
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;
Expand Down

0 comments on commit afcbd51

Please sign in to comment.