VC11 build fix
author <shinichiro.hamaji@gmail.com> <>
Mon, 14 May 2012 07:43:51 +0000 (07:43 +0000)
committer <shinichiro.hamaji@gmail.com> <>
Mon, 14 May 2012 07:43:51 +0000 (07:43 +0000)
http://code.google.com/p/google-glog/issues/detail?id=119

git-svn-id: https://google-glog.googlecode.com/svn/trunk@110 eb4d4688-79bd-11dd-afb4-1d65580434c0

src/windows/port.h

index d093bf5..46f1b10 100755 (executable)
@@ -94,7 +94,10 @@ enum { STDIN_FILENO = 0, STDOUT_FILENO = 1, STDERR_FILENO = 2 };
 #define strncasecmp  _strnicmp
 
 /* In windows-land, hash<> is called hash_compare<> (from xhash.h) */
+/* VC11 provides std::hash */
+#if defined(_MSC_VER) && (_MSC_VER < 1700)
 #define hash  hash_compare
+#endif
 
 /* Sleep is in ms, on windows */
 #define sleep(secs)  Sleep((secs) * 1000)