From e8dbe06f01412f9dd32fef975e75d3b6460b41ef Mon Sep 17 00:00:00 2001 From: deepend Date: Thu, 26 Feb 2026 11:10:33 -0700 Subject: [PATCH] Added a Win32-only forward declaration for fe_apply_windows_theme(gboolean dark) before its first use so MSVC sees the correct signature and no longer infers an int return type. This addresses the C4013 + C2371 sequence from your build log. --- src/fe-gtk/fe-gtk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c index 700c61e3..3002af8e 100644 --- a/src/fe-gtk/fe-gtk.c +++ b/src/fe-gtk/fe-gtk.c @@ -702,6 +702,10 @@ static gboolean gtk3_theme_provider_dark = FALSE; static GResource *gtk3_theme_resource = NULL; static char *gtk3_theme_resource_path = NULL; +#ifdef G_OS_WIN32 +static void fe_apply_windows_theme (gboolean dark); +#endif + static void fe_gtk3_theme_unregister_resource (void) {