From dab149e4a6291dd412b594c0faba2c44f9a74263 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 5 Apr 2024 21:23:28 +0100 Subject: [PATCH] core: fix compile without pch fixes #5445 --- src/SharedDefs.hpp | 2 ++ src/config/ConfigValue.hpp | 1 + src/plugins/PluginAPI.hpp | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp index 55ce1f81..1b4876bb 100644 --- a/src/SharedDefs.hpp +++ b/src/SharedDefs.hpp @@ -70,3 +70,5 @@ struct SHyprCtlCommand { bool exact = true; std::function fn; }; + +typedef std::function HOOK_CALLBACK_FN; diff --git a/src/config/ConfigValue.hpp b/src/config/ConfigValue.hpp index 6017a7cd..72accd67 100644 --- a/src/config/ConfigValue.hpp +++ b/src/config/ConfigValue.hpp @@ -5,6 +5,7 @@ #include #include "../debug/Log.hpp" #include "../macros.hpp" +#include "ConfigManager.hpp" template class CConfigValue { diff --git a/src/plugins/PluginAPI.hpp b/src/plugins/PluginAPI.hpp index 575fef40..75dca24e 100644 --- a/src/plugins/PluginAPI.hpp +++ b/src/plugins/PluginAPI.hpp @@ -29,7 +29,6 @@ Feel like the API is missing something you'd like to use in your plugin? Open an #include #include -typedef std::function HOOK_CALLBACK_FN; typedef struct { std::string name; std::string description;