[glib/glib-2-52] appinfo: Fix the build on windows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-52] appinfo: Fix the build on windows
- Date: Thu, 22 Jun 2017 15:40:12 +0000 (UTC)
commit 373fda6809e50703fcd85c8ece26bd710d89bfdf
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 2 11:42:42 2017 -0700
appinfo: Fix the build on windows
The previous commit forgot to protect some unix-only
calls by an ifdef.
Pointed out by John Emmas.
gio/gappinfo.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gappinfo.c b/gio/gappinfo.c
index e910c0f..abb5bc2 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
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]