diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-14 12:39:16 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-14 12:39:16 +0000 |
commit | 95480e8d16f89e1f3c51d1e5b72e0366fb2a0ee4 (patch) | |
tree | 28d6ca434bb598d3fe404aaf38a099f143d181a8 /src/murmurhash3.h | |
parent | b10df97dd0e8c4c8287e722e5807142ed7321206 (diff) |
Fixed exports.
Fixed WIN32.
Diffstat (limited to 'src/murmurhash3.h')
-rw-r--r-- | src/murmurhash3.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/murmurhash3.h b/src/murmurhash3.h index 62cda97..56524d9 100644 --- a/src/murmurhash3.h +++ b/src/murmurhash3.h @@ -7,7 +7,19 @@ // compile and run any of them on any platform, but your performance with the // non-native version will be less than optimal. +#ifdef _WIN32 +#include <stddef.h> +typedef __int8 int8_t; +typedef unsigned __int8 uint8_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int32 uint32_t; +typedef unsigned __int64 uint64_t; +#elif (defined(SOLARIS) || defined(sun) || defined(HAVE_INTTYPES_H) \ + || defined(BSD) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD_kernel__)) +#include <inttypes.h> +#else #include <stdint.h> +#endif static uint32_t rotl32 ( uint32_t x, int8_t r ) { |