GNOME Bugzilla – Bug 540047
glib-genmarshal.c: '#include <io.h>' is too before.
Last modified: 2008-06-27 10:00:45 UTC
Please describe the problem: If G_OS_WIN32 is defined, io.h will be included. But '#include <io.h>' is before the definition of G_OS_WIN32. So io.h is never included. Steps to reproduce: 1. compile glib-genmarshal.c Actual results: Following messages are displayed.(Visual C++) glib-genmarshal.c(666) : error C4013: 'dup' undefined; assuming extern returning int glib-genmarshal.c(668) : error C4013: 'open' undefined; assuming extern returning int glib-genmarshal.c(740) : error C4013: 'close' undefined; assuming extern returning int Expected results: '#include <io.h>' should be moved after '#include <glib.h>'. Does this happen every time? Revision 7089 Other information:
Created attachment 113484 [details] [review] patch for latest glib-genmarshal.c
Fix commited to SVN: 2008-06-27 Hans Breuer <hans@breuer.org> * glib-genmarshal.c : move G_OS_WIN32 inclusion of <io.h> down to where G_OS_WIN32 will be defined (#540047, Kazuki IWAMOTO)