Problem: inclusion of winsock2.h leads to ordering issues in user code.
Solution: don't include winsock2.h, replace its only use (reference to SOCKET) by explicitly naming underlying type.
Showing
Please
register
or
sign in
to comment
Solution: don't include winsock2.h, replace its only use (reference to SOCKET) by explicitly naming underlying type.