#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
# define PIPE_ARCH_BIG_ENDIAN
#endif
-#endif
+#elif defined(_MSC_VER)
-#warn Unknown Endianness for this platform. Assuming little endian
#define PIPE_ARCH_LITTLE_ENDIAN
#endif
+
+#endif