diff options
-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; |