|
@@ -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)();
|
|
|
+ #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;
|