From 2f314c8e582951dc5a6bed5b9929b58f232e11d2 Mon Sep 17 00:00:00 2001 From: Shuai Zhang Date: Sun, 9 Oct 2016 17:50:44 +0800 Subject: [PATCH] Use stdint.h since VS 2010. --- src/PMurHash.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PMurHash.h b/src/PMurHash.h index 28ead00..c1e8c4d 100644 --- a/src/PMurHash.h +++ b/src/PMurHash.h @@ -15,13 +15,14 @@ * any version provided by the system headers or application. */ /* First look for special cases */ -#if defined(_MSC_VER) +#if defined(_MSC_VER) && _MSC_VER < 1600 #define MH_UINT32 unsigned long #endif /* If the compiler says it's C99 then take its word for it */ #if !defined(MH_UINT32) && ( \ - defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L ) + (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ + (defined(_MSC_VER) && _MSC_VER >= 1600) ) #include #define MH_UINT32 uint32_t #endif