diff options
author | Michel Dänzer <[email protected]> | 2011-05-09 12:29:47 +0200 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2011-05-09 12:29:47 +0200 |
commit | 9d792d013c206facf78b9529761d9f814d2778c0 (patch) | |
tree | df7cde7fc0c55c66d096bbec7509b556ba73870d /src/gallium | |
parent | 991c1f024977c327e762f5275edbe874c819c85f (diff) |
gallium: Factor out unknown endianness detection.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/include/pipe/p_config.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h index a0aa2df8de3..1818c8b9e9a 100644 --- a/src/gallium/include/pipe/p_config.h +++ b/src/gallium/include/pipe/p_config.h @@ -126,12 +126,14 @@ #define PIPE_ARCH_LITTLE_ENDIAN #elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) #define PIPE_ARCH_BIG_ENDIAN -#else -#error Unknown Endianness #endif #endif +#if !defined(PIPE_ARCH_LITTLE_ENDIAN) && !defined(PIPE_ARCH_BIG_ENDIAN) +#error Unknown Endianness +#endif + #if !defined(PIPE_OS_EMBEDDED) /* |