meson/configure: detect endian.h instead of trying to guess when it's available
[mesa.git] / src / util / u_endian.h
index 22d011ec0086ee77e11cdaa7c3249f16a86d348f..e11b381588dbc960e8c36600086f26931f43c68a 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef U_ENDIAN_H
 #define U_ENDIAN_H
 
-#if defined(__GLIBC__) || defined(ANDROID) || defined(__CYGWIN__)
+#ifdef HAVE_ENDIAN_H
 #include <endian.h>
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN