diff --git a/3party/protobuf/config.h b/3party/protobuf/config.h index 64dda2550b..5b53c0098e 100644 --- a/3party/protobuf/config.h +++ b/3party/protobuf/config.h @@ -1,20 +1,32 @@ /* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ -/* the name of */ +/* the name of */ #define HASH_MAP_CLASS unordered_map /* the location of */ -#define HASH_MAP_H +#ifdef _MSC_VER + #define HASH_MAP_H +#else + #define HASH_MAP_H +#endif /* the namespace of hash_map/hash_set */ -#define HASH_NAMESPACE std::tr1 +#ifdef _MSC_VER + #define HASH_NAMESPACE stdext +#else + #define HASH_NAMESPACE std::tr1 +#endif /* the name of */ #define HASH_SET_CLASS unordered_set /* the location of */ -#define HASH_SET_H +#ifdef _MSC_VER + #define HASH_SET_H +#else + #define HASH_SET_H +#endif /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 diff --git a/3party/protobuf/src/google/protobuf/stubs/common.cc b/3party/protobuf/src/google/protobuf/stubs/common.cc index 7b15be44d8..e7272bc82f 100644 --- a/3party/protobuf/src/google/protobuf/stubs/common.cc +++ b/3party/protobuf/src/google/protobuf/stubs/common.cc @@ -36,7 +36,7 @@ #include #include -#include "config.h" +#include "../../../../config.h" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN // We only need minimal includes diff --git a/3party/protobuf/src/google/protobuf/stubs/hash.h b/3party/protobuf/src/google/protobuf/stubs/hash.h index 822d605013..74b040a7b2 100644 --- a/3party/protobuf/src/google/protobuf/stubs/hash.h +++ b/3party/protobuf/src/google/protobuf/stubs/hash.h @@ -37,7 +37,7 @@ #include #include -#include "config.h" +#include "../../../../config.h" #if defined(HAVE_HASH_MAP) && defined(HAVE_HASH_SET) #include HASH_MAP_H