[Xcb] Status of XCB and howto begin
Bernardo Innocenti
bernie at develer.com
Mon Feb 6 22:15:15 PST 2006
Vincent Torri 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.
>
> in the gcc page that talks about the visibility support, it's mentioned
> that pragma should not be used.
> Also, the modifications are just adding a defined variable in front of a
> function. Not a big deal.
Mesa already implements visibility portably for several
compilers. Maybe you could just copy the idea from there.
A few years ago, I used the very same approach for Windows DLLs
and it works fine with MSVC. I've also posted a patch to hide
private functions for libX11, which is not yet in CVS. You can
find it here:
https://bugs.freedesktop.org/show_bug.cgi?id=2607
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
More information about the Xcb
mailing list