From 8738147aee1f91256f1b68b8e8e467cedfcb21f3 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 31 May 2015 15:55:32 +0100 Subject: [PATCH] Windows: pragma link with user32.lib if we are using native clipboard function (unless IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS) #238 --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 0cf63cd7..3e6a09e3 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10043,6 +10043,7 @@ void ImFont::RenderText(float size, ImVec2 pos, ImU32 col, const ImVec4& clip_re #define WIN32_LEAN_AND_MEAN #include #endif +#pragma comment(lib, "user32") // Win32 API clipboard implementation static const char* GetClipboardTextFn_DefaultImpl()