projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iris: Enable the dual_color_blend_by_location driconf option.
[mesa.git]
/
src
/
util
/
u_endian.h
diff --git
a/src/util/u_endian.h
b/src/util/u_endian.h
index b9d563dd4353c34a206d13971d814fee7911dae2..e11b381588dbc960e8c36600086f26931f43c68a 100644
(file)
--- a/
src/util/u_endian.h
+++ b/
src/util/u_endian.h
@@
-27,7
+27,7
@@
#ifndef U_ENDIAN_H
#define U_ENDIAN_H
#ifndef U_ENDIAN_H
#define U_ENDIAN_H
-#if
defined(__GLIBC__) || defined(ANDROID)
+#if
def HAVE_ENDIAN_H
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
#include <endian.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
@@
-54,7
+54,8
@@
# define PIPE_ARCH_BIG_ENDIAN
#endif
# define PIPE_ARCH_BIG_ENDIAN
#endif
-#elif defined(__OpenBSD__) || defined(__NetBSD__)
+#elif defined(__OpenBSD__) || defined(__NetBSD__) || \
+ defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/types.h>
#include <machine/endian.h>
#include <sys/types.h>
#include <machine/endian.h>
@@
-64,6
+65,10
@@
# define PIPE_ARCH_BIG_ENDIAN
#endif
# define PIPE_ARCH_BIG_ENDIAN
#endif
+#elif defined(_MSC_VER)
+
+#define PIPE_ARCH_LITTLE_ENDIAN
+
#endif
#endif
#endif
#endif