Mesa (master): util: Just give up and define PIPE_ARCH_LITTLE_ENDIAN on MSVC

Matt Turner mattst88 at kemper.freedesktop.org
Sun Nov 26 00:46:04 UTC 2017


Module: Mesa
Branch: master
Commit: 676761252b731a6bf408e4dca694c31d74a995fc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=676761252b731a6bf408e4dca694c31d74a995fc

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sat Nov 25 16:45:27 2017 -0800

util: Just give up and define PIPE_ARCH_LITTLE_ENDIAN on MSVC

MSVC doesn't support #warning?! Getting really tired of this.

---

 src/util/u_endian.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/util/u_endian.h b/src/util/u_endian.h
index 980b1ab2e1..50f94c578e 100644
--- a/src/util/u_endian.h
+++ b/src/util/u_endian.h
@@ -65,9 +65,10 @@
 # define PIPE_ARCH_BIG_ENDIAN
 #endif
 
-#endif
+#elif defined(_MSC_VER)
 
-#warning Unknown Endianness for this platform. Assuming little endian
 #define PIPE_ARCH_LITTLE_ENDIAN
 
 #endif
+
+#endif




More information about the mesa-commit mailing list