aboutsummaryrefslogtreecommitdiff
path: root/vsprojects
diff options
context:
space:
mode:
authorkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-10-12 19:22:03 +0000
committerkenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-10-12 19:22:03 +0000
commitc91e1fe82b09ae0758ce6f0cb2edaf87bb82f80c (patch)
treec02b0c377c102cce604edeffd69cf7a24cfea339 /vsprojects
parent477f799fb6b98cca51d1ad1345708eb5610b016d (diff)
downloadprotobuf-c91e1fe82b09ae0758ce6f0cb2edaf87bb82f80c.tar.gz
protobuf-c91e1fe82b09ae0758ce6f0cb2edaf87bb82f80c.tar.bz2
protobuf-c91e1fe82b09ae0758ce6f0cb2edaf87bb82f80c.zip
Support MSVC 2010 beta 1.
Diffstat (limited to 'vsprojects')
-rw-r--r--vsprojects/config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/vsprojects/config.h b/vsprojects/config.h
index e09f297e..1becfc96 100644
--- a/vsprojects/config.h
+++ b/vsprojects/config.h
@@ -5,7 +5,11 @@
#define HASH_MAP_H <hash_map>
/* the namespace of hash_map/hash_set */
-#if _MSC_VER < 1310
+// Apparently Microsoft decided to move hash_map *back* to the std namespace
+// in MSVC 2010:
+// http://blogs.msdn.com/vcblog/archive/2009/05/25/stl-breaking-changes-in-visual-studio-2010-beta-1.aspx
+// TODO(kenton): Use unordered_map instead, which is available in MSVC 2010.
+#if _MSC_VER < 1310 || _MSC_VER >= 1500
#define HASH_NAMESPACE std
#else
#define HASH_NAMESPACE stdext