Skip to content

Commit 49da9ba

Browse files
committed
Added missing prototype to ImGui_ImplGlfw_KeyToImGuiKey
1 parent c71e4e8 commit 49da9ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backends/imgui_impl_glfw.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ static void ImGui_ImplGlfw_ShutdownMultiViewportSupport();
216216

217217
// Functions
218218

219+
//Prototype to avoid -Werror=missing-declarations warning
220+
ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey(int keycode, int scancode);
221+
219222
// Not static to allow third-party code to use that if they want to (but undocumented)
220223
ImGuiKey ImGui_ImplGlfw_KeyToImGuiKey(int keycode, int scancode)
221224
{

0 commit comments

Comments
 (0)