fix for libXrender and new renderproto

Julien Cristau jcristau at debian.org
Tue Sep 4 19:01:26 PDT 2007


On Tue, Sep  4, 2007 at 18:52:16 -0700, Paul Bender wrote:

> In the latest renderproto tarball (0.9.3), the included render.h header 
> file switched to using the XID defined type. XID is defined in X.h and 
> Xlib.h.
>
> This causes a problem software that uses libXrender, because of the oder of 
> included header files in Xrender.h. Xrender.h includes render.h before 
> Xlib.h. As result, XID is not defined in time. The attached patch for 
> libXrender fixes the problem by reordering the includes.
>
Maybe <X11/extensions/render.h> should #include <X11/X.h> itself, if it
needs the XID typedef?

Cheers,
Julien



More information about the xorg mailing list