Hi, Ozkan Sezer wrote: > It is mingw-w64 (http://mingw-w64.sourceforge.net/) where > the provided ws2tcpip.h header doesn't include winsock2.h. > The mingw32 header does include it, for convenience as it > seems
It is not "for convenience". It is for correctness. 20 years ago it was usual that you had to #include <sys/types.h> before <regex.h> or similar. This was rectified in the standards and then also in the implementations. The standard behaviour for #include files nowadays is: 1) Every header file can be #included by itself. 2) When several header files are #included, the order does not matter. Platforms that don't satisfy this are buggy. mingw-w64 is still in alpha state, as can be seen from the URL you cited: "The current state: It is already possible to generate applications using these headers, libs and runtime together with gcc-4.4 and up :-) There might be bugs here and there" OK, let them fix the bugs. There is no need for gnulib to work around bugs in platforms that are in not widespread use and are in active development. Can you report it to the mingw-w64 people, please? Bruno