From 2470e7489dffdaaa9e562f210947c6bd0c56a676 Mon Sep 17 00:00:00 2001 From: Learath Date: Sat, 27 Jan 2024 15:12:57 +0100 Subject: [PATCH] Fix updater issue. Close #7867 --- src/engine/client/updater.cpp | 3 +-- src/engine/client/updater.h | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/client/updater.cpp b/src/engine/client/updater.cpp index 34f7222fb..b2db339f2 100644 --- a/src/engine/client/updater.cpp +++ b/src/engine/client/updater.cpp @@ -1,7 +1,6 @@ -#include "updater.h" - #include +#include "updater.h" #include #include #include diff --git a/src/engine/client/updater.h b/src/engine/client/updater.h index 68148f161..c9934ad81 100644 --- a/src/engine/client/updater.h +++ b/src/engine/client/updater.h @@ -1,6 +1,7 @@ #ifndef ENGINE_CLIENT_UPDATER_H #define ENGINE_CLIENT_UPDATER_H +#include #include #include @@ -25,6 +26,9 @@ #define PLAT_NAME CONF_PLATFORM_STRING "-unsupported" #endif #else +#if defined(AUTOUPDATE) +#error Compiling with autoupdater on an unsupported platform +#endif #define PLAT_EXT "" #define PLAT_NAME "unsupported-unsupported" #endif