Mesa (master): util/u_endian: Use _WIN32 instead of _MSC_VER

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 5 16:40:23 UTC 2019


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

Author: Dylan Baker <dylan at pnwbakers.com>
Date:   Mon Jul  8 14:25:16 2019 -0700

util/u_endian: Use _WIN32 instead of _MSC_VER

_WIN32 is defined by basically all windows compilers (MSVC, ICL, MinGW),
wereas _MSC_VER is not defined by MinGW. Without this change MinGW falls
through and doesn't define PIPE_ARCH at all, and is caught by some extra
code in gallium.

Reviewed-by: Eric Engestrom <eric at engestrom.ch>

---

 src/util/u_endian.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/u_endian.h b/src/util/u_endian.h
index e11b381588d..7ec51380ffa 100644
--- a/src/util/u_endian.h
+++ b/src/util/u_endian.h
@@ -65,7 +65,7 @@
 # define PIPE_ARCH_BIG_ENDIAN
 #endif
 
-#elif defined(_MSC_VER)
+#elif defined(_WIN32)
 
 #define PIPE_ARCH_LITTLE_ENDIAN
 




More information about the mesa-commit mailing list