[Xcb] Status of XCB and howto begin

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Wed Feb 8 12:34:10 PST 2006



On Sat, 4 Feb 2006, Jamey Sharp wrote:

> On Sat, Feb 04, 2006 at 05:51:35PM +0100, Vincent Torri wrote:
> > On Sat, 4 Feb 2006, Barton C Massey wrote:
> > > With no offense intended for Josh, Jamey's way is the right
> > > way, as it is not GCC-dependent, I think?
> >
> > you have to add some __attribute__, so it's gcc dependant, I think
>
> I think adding the visibility #pragma to xcbint.h is better: it's a tiny
> patch, then, and doesn't require us to do anything special if we change
> the functions in xcbint.h later.
>
> It's still specific to GCC 4, though. All of these options are.

Here are 2 patch for xcbint.h

the one with the __attribute__, the other with the pragma

I've tested both. In the two cases, the symbols were not exported. You can
test them too

which one do I commit ?

Vincent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xcbint2.h
Type: text/x-chdr
Size: 5633 bytes
Desc: 
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060208/0effa3a2/xcbint2.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xcbint1.h
Type: text/x-chdr
Size: 5975 bytes
Desc: 
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060208/0effa3a2/xcbint1.h


More information about the Xcb mailing list