2012/3/20 Earnie Boyd <[email protected]>
> On Tue, Mar 20, 2012 at 1:50 PM, Vincent Torri <[email protected]>
> wrote:
> > Hey
> >
> > with latest d-bus release (1.4.18) :
> >
> > In file included from dbus-sockets-win.h:36:0,
> > from dbus-sysdeps-win.c:49:
> >
> c:\mingw_efl\mingw-w64-x86_32\bin\../lib/gcc/i686-w64-mingw32/4.6.2/../../../../i686-w64-mingw32/include/winsock2.h:15:2
> > : warning: #warning Please include winsock2.h before windows.h [-Wcpp]
> >
>
> I wonder why it matters? The mingw.org version of winsock2.h just
> includes windows.h as the first item of business. Let's ask
> mingw-64-public?
>
This will cause problems with the fact that windows.h includes winsock.h
(check MSVC headers, you'll find it). Including winsock2.h after winsock.h
(through windows.h for example) will produce double definition errors.
For reference, see the "note" here:
http://msdn.microsoft.com/en-us/library/ms737629%28VS.85%29.aspx
'Historical reasons'
Ruben
>
> --
> Earnie
> -- https://sites.google.com/site/earnieboyd
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public