summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-15 02:42:10 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-15 02:42:10 +0000
commit92a67da8fa1734732a01a0a7d12fc3f6d697b2b3 (patch)
treedf948ad3d0e531aff9180b0e03c999dee1f561f1
parentUpdate ImGui to latest (diff)
downloadilt-92a67da8fa1734732a01a0a7d12fc3f6d697b2b3.tar.bz2
ilt-92a67da8fa1734732a01a0a7d12fc3f6d697b2b3.tar.xz
ilt-92a67da8fa1734732a01a0a7d12fc3f6d697b2b3.zip
Wrap imgui_intenal if requested
-rw-r--r--ui/imgui_wrap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/imgui_wrap.h b/ui/imgui_wrap.h
index 1d619a4..520d8b8 100644
--- a/ui/imgui_wrap.h
+++ b/ui/imgui_wrap.h
@@ -3,4 +3,11 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#include "imgui.h" // IWYU pragma: export
+#ifdef IMGUI_INTERNAL
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wconversion"
+# pragma GCC diagnostic ignored "-Wsign-conversion"
+# include "imgui_internal.h" // IWYU pragma: export
+# pragma GCC diagnostic pop
+#endif
#pragma GCC diagnostic pop