aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/sokol_imgui.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/sokol_imgui.h b/util/sokol_imgui.h
index c63a5ddf..d4dc34c2 100644
--- a/util/sokol_imgui.h
+++ b/util/sokol_imgui.h
@@ -2380,7 +2380,13 @@ SOKOL_API_IMPL void simgui_setup(const simgui_desc_t* desc) {
#if defined(__cplusplus)
ImGuiPlatformIO* pio = &ImGui::GetPlatformIO();
#else
- ImGuiPlatformIO* pio = _SIMGUI_CFUNC(GetPlatformIO_Nil)();
+ #if defined(CIMGUI_INCLUDED)
+ // 'original' cimgui
+ ImGuiPlatformIO* pio = _SIMGUI_CFUNC(GetPlatformIO_Nil)();
+ #else
+ // dear bindings cimgui
+ ImGuiPlatformIO* pio = _SIMGUI_CFUNC(GetPlatformIO)();
+ #endif
#endif
pio->Platform_SetClipboardTextFn = _simgui_set_clipboard;
pio->Platform_GetClipboardTextFn = _simgui_get_clipboard;