diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-05-22 17:36:50 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-05-22 17:36:50 +0200 |
| commit | fc0457c1c1e47b1fc019213d1d767c7311ab177f (patch) | |
| tree | 4cc0e88392102cf619f7417fe2f5b708f28d46ec /util | |
| parent | 350134a21e8570d376607d90190b5e72c80f1ee7 (diff) | |
sokol_imgui.h: fix unused function error if compiled with SOKOL_IMGUI_NO_SOKOL_APP
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_imgui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/sokol_imgui.h b/util/sokol_imgui.h index 0fe66379..3c8fc11c 100644 --- a/util/sokol_imgui.h +++ b/util/sokol_imgui.h @@ -2328,6 +2328,7 @@ static simgui_desc_t _simgui_desc_defaults(const simgui_desc_t* desc) { return res; } +#if !defined(SOKOL_IMGUI_NO_SOKOL_APP) static ImGuiPlatformIO* _simgui_get_platform_io(void) { #if defined(__cplusplus) return &ImGui::GetPlatformIO(); @@ -2341,6 +2342,7 @@ static ImGuiPlatformIO* _simgui_get_platform_io(void) { #endif #endif } +#endif static ImGuiIO* _simgui_get_io(void) { #if defined(__cplusplus) |