(sys/socket.h) [_WIN32]: Add comment to explain the include order
dependencies.
This commit is contained in:
parent
366f48b6e2
commit
68fd5e0c89
1 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue