Skip to content

Commit

Permalink
Use stdint.h since VS 2010.
Browse files Browse the repository at this point in the history
  • Loading branch information
hcoona committed Oct 9, 2016
1 parent 26e53cd commit 2f314c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PMurHash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdint.h>
#define MH_UINT32 uint32_t
#endif
Expand Down

0 comments on commit 2f314c8

Please sign in to comment.