Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix compilation error with msvc2012
Using change from glog's upstream for this.
  • Loading branch information
sergeyvfx committed May 11, 2013
1 parent 7e16226 commit 7ed5e4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/third_party/glog/src/windows/port.h
Expand Up @@ -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)
Expand Down

0 comments on commit 7ed5e4d

Please sign in to comment.