gallium: Add endian detection to p_config.

This commit is contained in:
Corbin Simpson 2009-07-08 11:26:52 -07:00
parent 186d187ff7
commit ce0f7954f8

View file

@ -101,6 +101,19 @@
#endif
/*
* Endian detection.
*/
#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
#define PIPE_ARCH_LITTLE_ENDIAN
#elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64)
#define PIPE_ARCH_BIG_ENDIAN
#else
#define PIPE_ARCH_UNKNOWN_ENDIAN
#endif
/*
* Operating system family.
*