diff options
author | Tor Lillqvist <tml@novell.com> | 2008-05-29 18:22:38 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2008-05-29 18:22:38 +0000 |
commit | 776c50947e11f3c4b41cef5e2c13744490a8cfc0 (patch) | |
tree | 49320558976618154d1adac7d76db0daa5ca4b47 /gtk/updateiconcache.c | |
parent | 0fb31a06bb4f36c89b92940c9795d0253d71fe98 (diff) | |
download | gdk-pixbuf-776c50947e11f3c4b41cef5e2c13744490a8cfc0.tar.gz |
Bug 535526 - updateiconcache.c: using open/close without prototype
2008-05-29 Tor Lillqvist <tml@novell.com>
Bug 535526 - updateiconcache.c: using open/close without prototype
* gtk/updateiconcache.c: Include <io.h> if _MSC_VER. Also, use
g_utime() instead of utime() for UTF-8 pathname support on Windows
when available.
svn path=/trunk/; revision=20238
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r-- | gtk/updateiconcache.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 15fc7ca80..4d8ce8210 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -31,6 +31,7 @@ #endif #include <errno.h> #ifdef _MSC_VER +#include <io.h> #include <sys/utime.h> #else #include <utime.h> @@ -1547,8 +1548,12 @@ build_cache (const gchar *path) utime_buf.actime = path_stat.st_atime; utime_buf.modtime = cache_stat.st_mtime; +#if GLIB_CHECK_VERSION (2, 17, 1) + g_utime (path, &utime_buf); +#else utime (path, &utime_buf); - +#endif + if (!quiet) g_printerr (_("Cache file created successfully.\n")); } |