From 952cfef497c03f37d436606d4ca495115c9406b0 Mon Sep 17 00:00:00 2001 From: Lukas Werling Date: Sun, 14 Oct 2018 23:19:32 +0200 Subject: [PATCH] Add missing C4Include include in C4ConsoleQtShapes Qt's moc generates another source file that includes this header without including C4Include.h first. The generates source file thus doesn't compile. It is unclear to me why this isn't an issue with our current build setup (it is an issue with a meson-based build). --- src/editor/C4ConsoleQtShapes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/C4ConsoleQtShapes.h b/src/editor/C4ConsoleQtShapes.h index 3b0623430..d2d63ecc8 100644 --- a/src/editor/C4ConsoleQtShapes.h +++ b/src/editor/C4ConsoleQtShapes.h @@ -20,6 +20,7 @@ #define INC_C4ConsoleQtShapes #ifdef WITH_QT_EDITOR +#include "C4Include.h" // needed for automoc #include "editor/C4ConsoleGUI.h" // for glew.h #include "editor/C4ConsoleQt.h" #include "script/C4Value.h" @@ -353,4 +354,4 @@ public: #endif // WITH_QT_EDITOR -#endif // INC_C4ConsoleQtShapes \ No newline at end of file +#endif // INC_C4ConsoleQtShapes