Fix #8748 tests.exe link failure under mingw/mingw64 (#8751)

pull/8851/head
xidang 3 years ago committed by GitHub
parent 7326b571d2
commit 914c6fe101
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/google/protobuf/map_test.cc

@ -30,7 +30,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)
#if defined(_MSC_VER)
#define _WINSOCKAPI_ // to avoid re-definition in WinSock2.h
#define NOMINMAX // to avoid defining min/max macros
#include <windows.h>

Loading…
Cancel
Save