Backends: Made all backends sources files support global IMGUI_DISABLE. (#6601)

This commit is contained in:
ocornut
2023-07-13 11:27:52 +02:00
parent 6888e6cdff
commit 33e13c85e1
41 changed files with 171 additions and 9 deletions

View File

@ -64,6 +64,7 @@
// 2016-10-15: Misc: Added a void* user_data parameter to Clipboard function handlers.
#include "imgui.h"
#ifndef IMGUI_DISABLE
#include "imgui_impl_glfw.h"
// Clang warnings with -Weverything
@ -795,6 +796,10 @@ void ImGui_ImplGlfw_NewFrame()
ImGui_ImplGlfw_UpdateGamepads();
}
//-----------------------------------------------------------------------------
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#endif // #ifndef IMGUI_DISABLE