summaryrefslogtreecommitdiff
path: root/src/murmurhash3.h.diff
diff options
context:
space:
mode:
Diffstat (limited to 'src/murmurhash3.h.diff')
-rw-r--r--src/murmurhash3.h.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/murmurhash3.h.diff b/src/murmurhash3.h.diff
new file mode 100644
index 0000000..a5a067e
--- /dev/null
+++ b/src/murmurhash3.h.diff
@@ -0,0 +1,22 @@
+--- murmurhash3.h.orig 2014-06-14 14:29:11.562576736 +0200
++++ murmurhash3.h 2014-06-14 14:39:43.989624584 +0200
+@@ -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 )
+ {