GNOME Bugzilla – Bug 156725
giowin32.c g_io_channel_new_file is doubly.
Last modified: 2004-12-22 21:47:04 UTC
Please describe the problem: g_io_channel_new_file is defined doubly. ("#define g_io_channel_new_file g_io_channel_new_file_utf8" lost?) Steps to reproduce: 1.compile by Visual C++ 6.0 Actual results: The following message is displayed. glib\glib\giowin32.c(1397) : error C2084: function 'GIOChannel *g_io_channel_new_file(const gchar *,const gchar *,GError ** )' already has a body glib\glib\giochannel.h(263) : see previous definition of 'g_io_channel_new_file' glib\glib\giowin32.c(1404) : error C4013: 'g_io_channel_new_file_utf8' undefined; assuming extern returning int glib\glib\giowin32.c(1404) : error C4047: '=' : 'GIOChannel *' differs in levels of indirection from 'int' Expected results: Maybe, append "#define g_io_channel_new_file g_io_channel_new_file_utf8"....? Does this happen every time? every time Other information:
Yup, that #define is in my copy of giochannel.h, but forgot to put it in the patch. Fixed in CVS.