libgimp: avoiding a build warning on Windows.

Seen in the CI:

> ../libgimp/gimpui.c:406:1: warning: 'gimp_ui_get_foreign_window' defined but not used [-Wunused-function]
This commit is contained in:
Jehan 2025-09-21 19:18:30 +02:00
parent a7c4320312
commit 70bf795dfb

View file

@ -402,6 +402,10 @@ gimp_osx_focus_window (gpointer user_data)
}
#endif
/* Currently broken on Win32 so avoiding a "defined but not used"
* warning when building on Windows.
*/
#ifndef GDK_WINDOWING_WIN32
static GdkWindow *
gimp_ui_get_foreign_window (gpointer window)
{
@ -418,6 +422,7 @@ gimp_ui_get_foreign_window (gpointer window)
return NULL;
}
#endif
static gboolean
gimp_window_transient_on_mapped (GtkWidget *window,