Windows: pragma link with user32.lib if we are using native clipboard function (unless IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS) #238

This commit is contained in:
ocornut 2015-05-31 15:55:32 +01:00
parent b148f70f83
commit 8738147aee

View File

@ -10043,6 +10043,7 @@ void ImFont::RenderText(float size, ImVec2 pos, ImU32 col, const ImVec4& clip_re
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#pragma comment(lib, "user32")
// Win32 API clipboard implementation
static const char* GetClipboardTextFn_DefaultImpl()