Skip to content

Commit

Permalink
Merge pull request protocolbuffers#341 from yukawa/fix-undef-GOOGLE_P…
Browse files Browse the repository at this point in the history
…ROTOBUF_MISSING_HASH

Undef GOOGLE_PROTOBUF_MISSING_HASH after it is used.
  • Loading branch information
xfxyjwf committed May 22, 2015
2 parents 48f9594 + cf9f603 commit 55df121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/stubs/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -200,7 +201,6 @@ class hash_set
hash_set(int = 0) {}
};

#undef GOOGLE_PROTOBUF_MISSING_HASH
#endif // !GOOGLE_PROTOBUF_MISSING_HASH

template <>
Expand Down

0 comments on commit 55df121

Please sign in to comment.