[Pixman] [PATCH 4/4] Various remaining fixes needed for successful compilation with C++
Behdad Esfahbod
behdad at behdad.org
Sun Dec 16 12:32:48 PST 2012
On 12-12-16 12:13 AM, Siarhei Siamashka wrote:
> -#define PIXMAN_null PIXMAN_FORMAT (0, 0, 0, 0, 0, 0)
> -#define PIXMAN_solid PIXMAN_FORMAT (0, 1, 0, 0, 0, 0)
> -#define PIXMAN_pixbuf PIXMAN_FORMAT (0, 2, 0, 0, 0, 0)
> -#define PIXMAN_rpixbuf PIXMAN_FORMAT (0, 3, 0, 0, 0, 0)
> -#define PIXMAN_unknown PIXMAN_FORMAT (0, 4, 0, 0, 0, 0)
> -#define PIXMAN_any PIXMAN_FORMAT (0, 5, 0, 0, 0, 0)
> +#define PIXMAN_null ((pixman_format_code_t) PIXMAN_FORMAT (0, 0, 0, 0, 0, 0))
> +#define PIXMAN_solid ((pixman_format_code_t) PIXMAN_FORMAT (0, 1, 0, 0, 0, 0))
> +#define PIXMAN_pixbuf ((pixman_format_code_t) PIXMAN_FORMAT (0, 2, 0, 0, 0, 0))
> +#define PIXMAN_rpixbuf ((pixman_format_code_t) PIXMAN_FORMAT (0, 3, 0, 0, 0, 0))
> +#define PIXMAN_unknown ((pixman_format_code_t) PIXMAN_FORMAT (0, 4, 0, 0, 0, 0))
> +#define PIXMAN_any ((pixman_format_code_t) PIXMAN_FORMAT (0, 5, 0, 0, 0, 0))
Clearly the cast belongs to inside the PIXMAN_FORMAT macro...
--
behdad
http://behdad.org/
More information about the Pixman
mailing list