[glib] appinfo: Fix the build on windows



commit 34b21312f1e0f6d35ccc815cc93f723c0a225ff3
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 36a000e..b0c03dd 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]