GNOME Bugzilla – Bug 535526
updateiconcache.c: using open/close without prototype
Last modified: 2008-05-29 18:23:52 UTC
Please describe the problem: 'open' and 'close' are used without the prototype declaration in 'updateiconcache.c'. 'io.h' should be included. Steps to reproduce: 1. compile updateiconcache.c by Visual C++ Actual results: Following message is displayed.(Visual C++) updateiconcache.c(1451) : error C4013: 'open' undefined; assuming extern returning int updateiconcache.c(1477) : error C4013: 'close' undefined; assuming extern returning int Expected results: Add '#include "io.h"' if '_MSC_VER' is defined. Does this happen every time? Revision 20167 or later Other information:
Fixed: 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() when available instead of utime() for UTF-8 pathname support on Windows.