[Mesa-dev] [PATCH] [RFC] include/pipe: all major Linux libc support endian.h
Erik Faye-Lund
kusmabite at gmail.com
Tue Mar 18 05:43:24 PDT 2014
On Fri, Mar 14, 2014 at 7:57 PM, David Heidelberger
<david.heidelberger at ixit.cz> wrote:
> ---
> src/gallium/include/pipe/p_config.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/include/pipe/p_config.h
> b/src/gallium/include/pipe/p_config.h
> index d603681..cd6f560 100644
> --- a/src/gallium/include/pipe/p_config.h
> +++ b/src/gallium/include/pipe/p_config.h
> @@ -130,7 +130,7 @@
> * Endian detection.
> */
>
> -#ifdef __GLIBC__
> +#if defined(PIPE_OS_LINUX) || defined(__GLIBC__)
> #include <endian.h>
>
> #if __BYTE_ORDER == __LITTLE_ENDIAN
Doesn't this do something else than the subject suggests? All *major*
linux libcs isn't the same as all linux libcs...
More information about the mesa-dev
mailing list