From bc28ed46d4fbb73fd5cde4c989dd39d0bc8a8c56 Mon Sep 17 00:00:00 2001 From: Tino Date: Sat, 30 Mar 2019 20:01:52 +0200 Subject: [PATCH] Added macro for avoiding to include 'endian.h' when MinGW is used for compiling the library on Windows. --- src/farmhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/farmhash.h b/src/farmhash.h index f90ca17..4997bb7 100644 --- a/src/farmhash.h +++ b/src/farmhash.h @@ -305,7 +305,7 @@ inline uint128_t Fingerprint128(const Str& s) { #if !defined(FARMHASH_BIG_ENDIAN) #define FARMHASH_BIG_ENDIAN #endif -#elif defined(__linux__) || defined(__CYGWIN__) || defined( __GNUC__ ) || defined( __GNU_LIBRARY__ ) +#elif defined(__linux__) || defined(__CYGWIN__) || defined( __GNUC__ ) && !defined(_WIN32) || defined( __GNU_LIBRARY__ ) #include // libc6-dev, GLIBC #if BYTE_ORDER == BIG_ENDIAN #if !defined(FARMHASH_BIG_ENDIAN)