diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-06-02 11:42:42 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-06-02 22:04:46 -0400 |
commit | 34b21312f1e0f6d35ccc815cc93f723c0a225ff3 (patch) | |
tree | 6bda22b118712a9a38d0b8b3811c882183516d5c | |
parent | 7c5cd293d02d8650973c397b515b5d4a88ba0f80 (diff) | |
download | glib-34b21312f1e0f6d35ccc815cc93f723c0a225ff3.tar.gz |
appinfo: Fix the build on windows
The previous commit forgot to protect some unix-only
calls by an ifdef.
Pointed out by John Emmas.
-rw-r--r-- | gio/gappinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gappinfo.c b/gio/gappinfo.c index 36a000e3b..b0c03dda8 100644 --- a/gio/gappinfo.c +++ b/gio/gappinfo.c @@ -831,7 +831,11 @@ gboolean g_app_info_launch_default_for_uri_finish (GAsyncResult *result, GError **error) { +#ifdef G_OS_UNIX return g_openuri_portal_open_uri_finish (result, error); +#else + return g_task_propagate_boolean (G_TASK (result), error); +#endif } /** |