mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
win32: move some code into #ifdef G_OS_UNIX
Fix various bits of code/declarations that are only used by G_OS_UNIX but were still visible to G_OS_WIN32. https://bugzilla.gnome.org/show_bug.cgi?id=688109
This commit is contained in:
@@ -193,22 +193,23 @@ mounts_changed (GUnixMountMonitor *mount_monitor,
|
||||
gpointer user_data)
|
||||
{
|
||||
GLocalDirectoryMonitor *local_monitor = user_data;
|
||||
#ifdef G_OS_UNIX
|
||||
GUnixMountEntry *mount;
|
||||
#endif
|
||||
gboolean is_mounted;
|
||||
GFile *file;
|
||||
|
||||
/* Emulate unmount detection */
|
||||
#ifdef G_OS_WIN32
|
||||
mount = NULL;
|
||||
/*claim everything was mounted */
|
||||
is_mounted = TRUE;
|
||||
#else
|
||||
#ifdef G_OS_UNIX
|
||||
mount = g_unix_mount_at (local_monitor->dirname, NULL);
|
||||
|
||||
is_mounted = mount != NULL;
|
||||
|
||||
if (mount)
|
||||
g_unix_mount_free (mount);
|
||||
#else
|
||||
/*claim everything was mounted */
|
||||
is_mounted = TRUE;
|
||||
#endif
|
||||
|
||||
if (local_monitor->was_mounted != is_mounted)
|
||||
|
Reference in New Issue
Block a user