iris: Enable the dual_color_blend_by_location driconf option.
[mesa.git] / src / util / u_endian.h
index b9d563dd4353c34a206d13971d814fee7911dae2..e11b381588dbc960e8c36600086f26931f43c68a 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef U_ENDIAN_H
 #define U_ENDIAN_H
 
-#if defined(__GLIBC__) || defined(ANDROID)
+#ifdef HAVE_ENDIAN_H
 #include <endian.h>
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN
@@ -54,7 +54,8 @@
 # define PIPE_ARCH_BIG_ENDIAN
 #endif
 
-#elif defined(__OpenBSD__) || defined(__NetBSD__)
+#elif defined(__OpenBSD__) || defined(__NetBSD__) || \
+      defined(__FreeBSD__) || defined(__DragonFly__)
 #include <sys/types.h>
 #include <machine/endian.h>
 
 # define PIPE_ARCH_BIG_ENDIAN
 #endif
 
+#elif defined(_MSC_VER)
+
+#define PIPE_ARCH_LITTLE_ENDIAN
+
 #endif
 
 #endif