Commit 203bb5eb authored by Jisi Liu's avatar Jisi Liu

Fix re-definition issue of winsock.h and winsock2.h

parent 1bf446c7
......@@ -31,6 +31,7 @@
// A hack to include windows.h first, which ensures the GetMessage macro can
// be undefined when we include <google/protobuf/stubs/common.h>
#if defined(_WIN32)
#define _WINSOCKAPI_ // to avoid re-definition in WinSock2.h
#include <windows.h>
#endif // _WIN32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment