After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 535526 - updateiconcache.c: using open/close without prototype
updateiconcache.c: using open/close without prototype
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.13.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-05-29 16:14 UTC by Kazuki Iwamoto
Modified: 2008-05-29 18:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2008-05-29 16:14:35 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:
Comment 1 Tor Lillqvist 2008-05-29 18:23:52 UTC
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.