[PATCH 2/6] Fix Sun compiler check that got turned around

Jeremy Huddleston jeremyhu at apple.com
Sat Oct 29 00:17:05 PDT 2011


Sorry.

Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>

On Oct 28, 2011, at 17:34, Alan Coopersmith wrote:

> Since the check is for !(compilers that support __builtin_constant_p)
> it needs to be !(gcc or new enough Sun cc), but was written as
> !(gcc or too old Sun cc).
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
> include/misc.h |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/misc.h b/include/misc.h
> index dc03911..2e8dd1b 100644
> --- a/include/misc.h
> +++ b/include/misc.h
> @@ -269,7 +269,7 @@ static inline void wrong_size(void)
> }
> #endif
> 
> -#if !(defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C < 0x590)))
> +#if !(defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)))
> static inline int __builtin_constant_p(int x)
> {
> 	return 0;
> -- 
> 1.7.3.2
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list