From: Date: Mon, 14 May 2012 07:43:51 +0000 (+0000) Subject: VC11 build fix X-Git-Tag: submit/tizen/20180313.064233~126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad13dc67dd79977137e8306506b1dee314792d2c;p=platform%2Fupstream%2Fglog.git VC11 build fix 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 --- diff --git a/src/windows/port.h b/src/windows/port.h index d093bf5..46f1b10 100755 --- a/src/windows/port.h +++ b/src/windows/port.h @@ -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)