Headers order below
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
All code was written and debugged in VS2019, and compiles there fine. But after migration appears classic problem of misordering winsockets headers. As that
error C2011: 'sockaddr' : 'struct' type redefinition
Anybody any suggestions, what is the cause ?