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 156725 - giowin32.c g_io_channel_new_file is doubly.
giowin32.c g_io_channel_new_file is doubly.
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
2.5.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-28 16:16 UTC by Kazuki Iwamoto
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2004-10-28 16:16:01 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:
Comment 1 Tor Lillqvist 2004-10-29 02:00:48 UTC
Yup, that #define is in my copy of giochannel.h, but forgot to put it in the 
patch. Fixed in CVS.