Browse Source

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

pull/2/head
Alibek Omarov 5 years ago
parent
commit
37f9c25212
  1. 2
      common/port.h

2
common/port.h

@ -116,6 +116,8 @@ GNU General Public License for more details. @@ -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

Loading…
Cancel
Save