diff options
author | aappleby@google.com <aappleby@google.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2014-04-22 21:40:50 +0000 |
---|---|---|
committer | aappleby@google.com <aappleby@google.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a> | 2014-04-22 21:40:50 +0000 |
commit | e87738e57558e0ec472b2fc3a643b838e5b6e88f (patch) | |
tree | 72b8b9186b057c053fb6721bb9ad51b3d5764cd5 | |
parent | b52816cce35fbfdda7d56c533cf53d15201513e3 (diff) | |
download | src-e87738e57558e0ec472b2fc3a643b838e5b6e88f.tar.gz |
Patch City.h to fix compile errors in Chromium (see issue 27)
git-svn-id: http://smhasher.googlecode.com/svn/trunk@152 77a7d1d3-4c08-bdc2-d393-d5859734b01a
-rw-r--r-- | City.h | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -43,11 +43,18 @@ #ifndef CITY_HASH_H_ #define CITY_HASH_H_ -#include "Platform.h" #include <stdlib.h> // for size_t. -//#include <stdint.h> #include <utility> +// Microsoft Visual Studio may not have stdint.h. +#if defined(_MSC_VER) && (_MSC_VER < 1600) +typedef unsigned char uint8_t; +typedef unsigned int uint32_t; +typedef unsigned __int64 uint64_t; +#else // defined(_MSC_VER) +#include <stdint.h> +#endif // !defined(_MSC_VER) + typedef uint8_t uint8; typedef uint32_t uint32; typedef uint64_t uint64; |