[msvc9] Fix protobuf compilation.

This commit is contained in:
vng 2011-11-23 19:52:52 +02:00 committed by Alex Zolotarev
parent c43c5ef038
commit 4edb636c65
3 changed files with 18 additions and 6 deletions

View file

@ -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 <hash_set> */
/* the name of <hash_map> */
#define HASH_MAP_CLASS unordered_map
/* the location of <hash_map> */
#define HASH_MAP_H <tr1/unordered_map>
#ifdef _MSC_VER
#define HASH_MAP_H <hash_map>
#else
#define HASH_MAP_H <tr1/unordered_map>
#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 <hash_set> */
#define HASH_SET_CLASS unordered_set
/* the location of <hash_set> */
#define HASH_SET_H <tr1/unordered_set>
#ifdef _MSC_VER
#define HASH_SET_H <hash_set>
#else
#define HASH_SET_H <tr1/unordered_set>
#endif
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

View file

@ -36,7 +36,7 @@
#include <errno.h>
#include <vector>
#include "config.h"
#include "../../../../config.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN // We only need minimal includes

View file

@ -37,7 +37,7 @@
#include <string.h>
#include <google/protobuf/stubs/common.h>
#include "config.h"
#include "../../../../config.h"
#if defined(HAVE_HASH_MAP) && defined(HAVE_HASH_SET)
#include HASH_MAP_H