[PATCH] Support compilers with alternate spellings of typeof

Peter Hutterer peter.hutterer at who-t.net
Thu Dec 6 20:32:26 PST 2012


On Thu, Dec 06, 2012 at 04:19:44PM -0800, Alan Coopersmith wrote:
> The AC_C_TYPEOF adds a #undef typeof to its autogenerated config.h.in
> template, but b8ab93dfbc7f292 didn't copy that to dix-config.h.in
> when HAVE_TYPEOF was, so the macro could claim typeof support but not
> make it work, when used with compilers like Solaris Studio 12.1 which
> only recognize it as __typeof__.
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

Acked-by: Peter Hutterer <peter.hutterer at who-t.net>


> ---
>  include/dix-config.h.in |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/dix-config.h.in b/include/dix-config.h.in
> index b270a32..e1cb9eb 100644
> --- a/include/dix-config.h.in
> +++ b/include/dix-config.h.in
> @@ -429,6 +429,9 @@
>  /* Define to 1 if typeof works with your compiler. */
>  #undef HAVE_TYPEOF
>  
> +/* Define to __typeof__ if your compiler spells it that way. */
> +#undef typeof
> +
>  /* The compiler supported TLS storage class, prefering initial-exec if tls_model is supported */
>  #undef TLS
>  
> -- 
> 1.7.9.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