From e9094b9247abab3bb59fb902d31d4a03f82fac14 Mon Sep 17 00:00:00 2001 From: david-swift Date: Sat, 18 May 2024 15:45:03 +0200 Subject: [PATCH] Fix not compiling on Windows --- .../Adwaita/Model/User Interface/Window/GTUIAboutWindow.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Adwaita/Model/User Interface/Window/GTUIAboutWindow.swift b/Sources/Adwaita/Model/User Interface/Window/GTUIAboutWindow.swift index a3ac51b..1a223c1 100644 --- a/Sources/Adwaita/Model/User Interface/Window/GTUIAboutWindow.swift +++ b/Sources/Adwaita/Model/User Interface/Window/GTUIAboutWindow.swift @@ -15,7 +15,11 @@ public class GTUIAboutWindow: GTUIWindow { public init(filePath: String? = nil) { super.init(fields: [:]) if let filePath { + #if os(Windows) + pointer = adw_about_window_new()?.cast() + #else pointer = adw_about_window_new_from_appdata(filePath, nil)?.cast() + #endif } else { pointer = adw_about_window_new()?.cast() }