Sfoglia il codice sorgente

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

Undef GOOGLE_PROTOBUF_MISSING_HASH after it is used.
Feng Xiao 10 anni fa
parent
commit
55df12194f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/google/protobuf/stubs/hash.h

+ 1 - 1
src/google/protobuf/stubs/hash.h

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