Merge pull request #341 from yukawa/fix-undef-GOOGLE_PROTOBUF_MISSING_HASH

Undef GOOGLE_PROTOBUF_MISSING_HASH after it is used.
pull/1012/head^2
Feng Xiao 10 years ago
commit 55df12194f
  1. 2
      src/google/protobuf/stubs/hash.h

@ -53,6 +53,7 @@ namespace google {
namespace protobuf {
#ifdef GOOGLE_PROTOBUF_MISSING_HASH
#undef GOOGLE_PROTOBUF_MISSING_HASH
// This system doesn't have hash_map or hash_set. Emulate them using map and
// set.
@ -200,7 +201,6 @@ class hash_set
hash_set(int = 0) {}
};
#undef GOOGLE_PROTOBUF_MISSING_HASH
#endif // !GOOGLE_PROTOBUF_MISSING_HASH
template <>

Loading…
Cancel
Save