Added macro for avoiding to include 'endian.h' when MinGW is used for compiling the library on Windows.
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 @@
   #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 <endian.h> // libc6-dev, GLIBC
   #if BYTE_ORDER == BIG_ENDIAN
     #if !defined(FARMHASH_BIG_ENDIAN)