From 16d2d02787076b69f6d3779447840ab2c9d352a9 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Thu, 2 Feb 2023 14:02:38 +0100 Subject: [PATCH] Add two missing #ifdef CHATTERINO_HAVE_PLUGINS --- src/controllers/commands/CommandController.cpp | 5 ++++- src/widgets/settingspages/AboutPage.cpp | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index e8f4f6b35..51911aaeb 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -12,7 +12,6 @@ #include "controllers/commands/CommandModel.hpp" #include "controllers/plugins/PluginController.hpp" #include "controllers/userdata/UserDataController.hpp" -#include "lua.h" #include "messages/Message.hpp" #include "messages/MessageBuilder.hpp" #include "messages/MessageElement.hpp" @@ -52,6 +51,10 @@ #include #include +#ifdef CHATTERINO_HAVE_PLUGINS +# include "lua.h" +#endif + namespace { using namespace chatterino; diff --git a/src/widgets/settingspages/AboutPage.cpp b/src/widgets/settingspages/AboutPage.cpp index 631152487..a9509674c 100644 --- a/src/widgets/settingspages/AboutPage.cpp +++ b/src/widgets/settingspages/AboutPage.cpp @@ -113,8 +113,10 @@ AboutPage::AboutPage() addLicense(form.getElement(), "miniaudio", "https://github.com/mackron/miniaudio", ":/licenses/miniaudio.txt"); +#ifdef CHATTERINO_HAVE_PLUGINS addLicense(form.getElement(), "lua", "https://lua.org", ":/licenses/lua.txt"); +#endif } // Attributions