Do not let windows.h define min/max macros

This commit is contained in:
Jisi Liu 2016-04-01 15:55:49 -07:00
parent 3b6df0612d
commit 93811ca9f7

View File

@ -32,6 +32,7 @@
// be undefined when we include <google/protobuf/stubs/common.h>
#if defined(_WIN32)
#define _WINSOCKAPI_ // to avoid re-definition in WinSock2.h
#define NOMINMAX // to avoid defining min/max macros
#include <windows.h>
#endif // _WIN32