//-----------------------------------------------------------------------------
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.

#ifndef _MURMURHASH3_H_
#define _MURMURHASH3_H_

//-----------------------------------------------------------------------------
// Platform-specific functions and macros

// Microsoft Visual Studio

#if defined(_MSC_VER)

typedef unsigned char uint8_t;
typedef unsigned long uint32_t;
typedef unsigned __int64 uint64_t;

// Other compilers

#else   // defined(_MSC_VER)

#include <stdint.h>

#endif // !defined(_MSC_VER)

//-----------------------------------------------------------------------------

void MurmurHash3_x86_32 (const void * key, int len, uint32_t seed,
                         void * out);

/**
 * The following 2 functions have been altered to just return the
 * 64 most significant bits.
 */
void MurmurHash3_x86_128 (const void * key, int len, uint32_t seed,
                          void * out);

void MurmurHash3_x64_128 (const void * key, int len, uint32_t seed,
                          void * out);

//-----------------------------------------------------------------------------

#endif // _MURMURHASH3_H_

//-----------------------------------------------------------------------------
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.

#ifndef _MURMURHASH3_H_
#define _MURMURHASH3_H_

//-----------------------------------------------------------------------------
// Platform-specific functions and macros

#include <stdint.h>

//-----------------------------------------------------------------------------

void MurmurHash3_x86_32 (const void * key, int len, uint32_t seed,
                         void * out);

/**
 * The following 2 functions have been altered to just return the
 * 64 most significant bits.
 */
void MurmurHash3_x86_128 (const void * key, int len, uint32_t seed,
                          void * out);

void MurmurHash3_x64_128 (const void * key, int len, uint32_t seed,
                          void * out);

//-----------------------------------------------------------------------------

#endif // _MURMURHASH3_H_

Fix build break on WIN32
Fix build break on WIN32

New versions of MSVC have stdint.h

Change-Id: Ica591b67c9e09541648d3a47e6c8fc98afde2547
Reviewed-on: http://review.couchbase.org/42716
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Reviewed-by: Chiyoung Seo <fcffc23db27b19ee4ebba46695ee6b50e09216a2@couchbase.com>
