Description: Fix build with imgui disabled
 Newer dhewm3 embeds imgui. To avoid the embedded code copy this fix is needed.
 (porting to use the packaged imgui is something for after Trixie)
Author: Tobias Frost
Bug: https://github.com/dhewm/dhewm3/pull/666
Forwarded: https://github.com/dhewm/dhewm3/pull/666
Last-Update: 2025-03-22 <YYYY-MM-DD, last update of the meta-information, optional>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/neo/sys/sys_imgui.h
+++ b/neo/sys/sys_imgui.h
@@ -3,8 +3,6 @@
 #ifndef NEO_SYS_SYS_IMGUI_H_
 #define NEO_SYS_SYS_IMGUI_H_
 
-#include "../libs/imgui/imgui.h"
-
 namespace D3 {
 namespace ImGuiHooks {
 
@@ -17,6 +15,8 @@
 
 #ifndef IMGUI_DISABLE
 
+#include "../libs/imgui/imgui.h"
+
 extern ImGuiContext* imguiCtx; // this is only here so IsImguiEnabled() can use it inline
 
 inline bool IsImguiEnabled()
