mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
No fsync on Windows
This commit is contained in:
parent
290ecb0aba
commit
4e59750ac0
@ -1441,8 +1441,10 @@ safe_fclose (FILE *f)
|
||||
g_assert (fd >= 0);
|
||||
if (fflush (f) == EOF)
|
||||
return FALSE;
|
||||
#ifndef G_OS_WIN32
|
||||
if (fsync (fd) < 0)
|
||||
return FALSE;
|
||||
#endif
|
||||
if (fclose (f) == EOF)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user