[PATCH] Support compilers with alternate spellings of typeof

Alan Coopersmith alan.coopersmith at oracle.com
Fri Dec 14 20:59:19 PST 2012


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



More information about the xorg-devel mailing list