diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index 6dd6467f58bb..785f2730cf23 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -37,9 +37,6 @@ #include #include #include -#ifdef max -#undef max // Visual Studio defines this macro -#endif #if defined(_MSC_VER) && !defined(_LIBCPP_STD_VER) && !_HAS_EXCEPTIONS // Work around bugs in MSVC header when _HAS_EXCEPTIONS=0. #include diff --git a/src/google/protobuf/stubs/stl_util.h b/src/google/protobuf/stubs/stl_util.h index 45d28904f9eb..ef6630565059 100644 --- a/src/google/protobuf/stubs/stl_util.h +++ b/src/google/protobuf/stubs/stl_util.h @@ -37,6 +37,8 @@ #include +#include + namespace google { namespace protobuf { @@ -82,4 +84,6 @@ inline char* string_as_array(std::string* str) { } // namespace protobuf } // namespace google +#include + #endif // GOOGLE_PROTOBUF_STUBS_STL_UTIL_H__