Disable Win32 clipboard and IME functions when build target UWP (#2892, #2895)

This commit is contained in:
Tracy Ma
2019-11-15 16:51:48 +08:00
committed by omar
parent be05e12e21
commit 8f40020ca6
2 changed files with 5 additions and 0 deletions

View File

@ -9483,6 +9483,10 @@ static void WindowSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandl
#else
#include <windows.h>
#endif
#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP) // UWP doesn't have Win32 functions
#define IMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCTIONS
#define IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS
#endif
#elif defined(__APPLE__)
#include <TargetConditionals.h>
#endif