Mikhail Gusarov wrote:
> Twas brillig at 20:57:43 29.11.2010 UTC-08 when [email protected]
> did gyre and gimble:
>
> AC> +#ifndef XPRINTF_H
> AC> +#define XPRINTF_H
> AC> +
> AC> +#include <stdarg.h>
> AC> +#include <X11/Xfuncproto.h>
> AC> +
> AC> +#ifndef _X_RESTRICT_KYWD
> AC> +# if defined(restrict) /* assume autoconf set it correctly */ || \
> AC> + (defined(__STDC__) && (__STDC_VERSION__ - 0 >= 199901L)) /* C99 */
> AC> +# define _X_RESTRICT_KYWD restrict
> AC> +# elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc
> w/C89+extensions */
> AC> +# define _X_RESTRICT_KYWD __restrict__
> AC> +# else
> AC> +# define _X_RESTRICT_KYWD
> AC> +# endif
> AC> +#endif
>
> Maybe this is a material for Xfuncproto.h?
Yes, which is why I wrapped it in a #ifndef _X_RESTRICT_KYWD so that it could be
moved there later without clashing, but I didn't want to introduce a requirement
on an unreleased xproto release for it.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Platform Engineering: X Window System
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel