summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-05 21:23:28 +0100
committerVaxry <vaxry@vaxry.net>2024-04-05 21:23:28 +0100
commitdab149e4a6291dd412b594c0faba2c44f9a74263 (patch)
tree8576893d82ea2cc00ff43821900c1c7f5fc5f12c /src
parentb5b1c0137de5404dc771c48e83b0d5b00e4b052d (diff)
core: fix compile without pch
fixes #5445
Diffstat (limited to 'src')
-rw-r--r--src/SharedDefs.hpp2
-rw-r--r--src/config/ConfigValue.hpp1
-rw-r--r--src/plugins/PluginAPI.hpp1
3 files changed, 3 insertions, 1 deletions
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<std::string(eHyprCtlOutputFormat, std::string)> fn;
};
+
+typedef std::function<void(void*, SCallbackInfo&, std::any)> 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 <hyprlang.hpp>
#include "../debug/Log.hpp"
#include "../macros.hpp"
+#include "ConfigManager.hpp"
template <typename T>
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 <functional>
#include <string>
-typedef std::function<void(void*, SCallbackInfo&, std::any)> HOOK_CALLBACK_FN;
typedef struct {
std::string name;
std::string description;