port: include winsock2 explicitly, so winsock1 would not be included with windows.h

This commit is contained in:
Alibek Omarov 2019-08-09 02:28:28 +03:00
parent ee2c1ad8fa
commit 37f9c25212

View File

@ -116,6 +116,8 @@ GNU General Public License for more details.
#pragma warning(disable : 4310) // cast truncates constant value
#define HSPRITE WINAPI_HSPRITE
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <windows.h>
#undef HSPRITE