[PATCH libICE] Enable visibility annotations

Yury Gribov y.gribov at samsung.com
Tue May 10 12:00:09 UTC 2016

On 05/06/2016 07:25 PM, Alan Coopersmith wrote:
> On 05/ 6/16 04:18 AM, Yury Gribov wrote:
>> Unfortunately I don't see any good approach. We could move definitions of
>> _X_EXPORT and friends to configure.ac but this would need to be done
>> for all X11 packages (not just libICE) which just does not scale.
> And then you'd require any package that #includes an X11 header to use
> autoconf and add those to configure.ac and that really doesn't scale.

There is a way around this: you can strip internal defines from public 
headers and replace it with e.g. extern. This is how visibility was 
enabled for acl and libattr some time ago 

> Xfuncproto.h exists because X exposes headers to things built with
> hundreds of different build systems.

More information about the xorg-devel mailing list