projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb0dbdd
)
util/u_endian: Use _WIN32 instead of _MSC_VER
author
Dylan Baker
<dylan@pnwbakers.com>
Mon, 8 Jul 2019 21:25:16 +0000
(14:25 -0700)
committer
Dylan Baker
<dylan@pnwbakers.com>
Tue, 5 Nov 2019 16:39:55 +0000
(16:39 +0000)
_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@engestrom.ch>
src/util/u_endian.h
patch
|
blob
|
history
diff --git
a/src/util/u_endian.h
b/src/util/u_endian.h
index
e11b381
..
7ec5138
100644
(file)
--- 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