[Xcb] xcb does not compile on solaris 8

Jamey Sharp jamey at minilop.net
Mon Nov 5 12:43:25 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alan, how are people expected to get the stdint types on old versions of
Solaris?

On 10/4/07, Vincent Torri <vtorri at univ-evry.fr> wrote:
> if I'm not mistaken, using autoconf has been discussed previously, and
> the conclusion is that it is not a good idea : xcb.h is included by
> anyone who is using xcb. The problem is that that person has maybe not
> the macro we will use from autoconf already defined properly. That's
> why system macros have beens used.

Right.

> 1) creating an xcb.h.in
>
> inside it, we have something like:
> #include <@STDINT_H@>
>
> 2) checking in configure if stdint.h exists of not. If so, we set
> STDINT_H so stdint.h, otherwise we set it to inttypes.h. Then,
> AC_SUBST + adding xcb.h to output files of configure.

Yes, that's feasible, although it strikes me as icky. ;-) I don't have
any better ideas though.

> Problem : xcb generated from a platform might not work if it's copied
> to another platform.

In that case, you almost certainly have bigger problems than whether
your stdint header is named inttypes.h or stdint.h. I don't think this
is a problem.

Jamey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHL4Bop1aplQ4I9mURAgOtAJwO2KINKyWYTyIQzpHld3SKRwWapwCfSsbJ
GgWufRyK2nDpaDpIejdi1Yw=
=y/tt
-----END PGP SIGNATURE-----


More information about the Xcb mailing list