diff --git a/src/google/protobuf/map_test.cc b/src/google/protobuf/map_test.cc index cfb3d001c2..195971b562 100644 --- a/src/google/protobuf/map_test.cc +++ b/src/google/protobuf/map_test.cc @@ -31,6 +31,7 @@ // A hack to include windows.h first, which ensures the GetMessage macro can // be undefined when we include #if defined(_WIN32) +#define _WINSOCKAPI_ // to avoid re-definition in WinSock2.h #include #endif // _WIN32