diff options
-rw-r--r-- | RepositoryExternal.mk | 5 | ||||
-rw-r--r-- | cui/source/dialogs/QrCodeGenDialog.cxx | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk index 021d9a7b650e..54ab1dbfdcc3 100644 --- a/RepositoryExternal.mk +++ b/RepositoryExternal.mk @@ -4160,8 +4160,9 @@ ifneq ($(SYSTEM_QRCODEGEN),) define gb_LinkTarget__use_qrcodegen $(call gb_LinkTarget_set_include,$(1),\ - $$(INCLUDE) \ - $(QRCODEGEN_CFLAGS) \ + -DSYSTEM_QRCODEGEN \ + $$(INCLUDE) \ + $(QRCODEGEN_CFLAGS) \ ) $(call gb_LinkTarget_add_libs,$(1),$(QRCODEGEN_LIBS)) diff --git a/cui/source/dialogs/QrCodeGenDialog.cxx b/cui/source/dialogs/QrCodeGenDialog.cxx index 628ada1df38b..14c9b18e9ab9 100644 --- a/cui/source/dialogs/QrCodeGenDialog.cxx +++ b/cui/source/dialogs/QrCodeGenDialog.cxx @@ -16,7 +16,11 @@ #include <utility> #include <vcl/weld.hxx> +#if defined(SYSTEM_QRCODEGEN) +#include <qrcodegen/QrCode.hpp> +#else #include <QrCode.hpp> +#endif #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/drawing/XDrawPageSupplier.hpp> |