Skip to content

Commit

Permalink
Support compilers with alternate spellings of typeof
Browse files Browse the repository at this point in the history
The AC_C_TYPEOF adds a #undef typeof to its autogenerated config.h.in
template, but b8ab93d 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 <[email protected]>
Acked-by: Peter Hutterer <[email protected]>
  • Loading branch information
alanc committed Dec 18, 2012
1 parent 3420a77 commit 5692a1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/dix-config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5692a1e

Please sign in to comment.