(sys/socket.h) [_WIN32]: Add comment to explain the include order

dependencies.
This commit is contained in:
Ron Koenderink 2007-08-29 23:07:33 +00:00
parent 366f48b6e2
commit 68fd5e0c89

View file

@ -50,6 +50,11 @@
#include <share.h> #include <share.h>
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
/*
* Need to include winsock2.h for ws2tcpip.h.
* Use sys/socket.h to ensure the #undef NS_ALL
* is not missed after including winsock2.h.
*/
#include "sys/socket.h" #include "sys/socket.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>