avoid c++ macro redifitnion on windows

pull/6780/head
woegster 5 years ago committed by Adam Cozzette
parent e93dea7746
commit bba24bcb6b
  1. 2
      src/google/protobuf/stubs/common.cc

@ -39,7 +39,9 @@
#include <vector>
#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN // We only need minimal includes
#endif
#include <windows.h>
#define snprintf _snprintf // see comment in strutil.cc
#elif defined(HAVE_PTHREAD)

Loading…
Cancel
Save