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 #include +#if defined(SYSTEM_QRCODEGEN) +#include +#else #include +#endif #include #include