[PATCH] xproto: Cygwin GCC does not support visibility attributes

Peter Hutterer peter.hutterer at who-t.net
Fri Dec 25 16:30:25 PST 2009


On Fri, Dec 25, 2009 at 11:39:58AM -0600, Yaakov (Cygwin/X) wrote:
> Ping 2?
> 
> On 13/10/2009 16:51, Yaakov (Cygwin/X) wrote:
> > From: Yaakov Selkowitz<yselkowitz-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f at public.gmane.org>
> >
> > ---
> >   Xfuncproto.h.in |    2 +-
> >   1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
> > index 0843491..afdd95b 100644
> > --- a/Xfuncproto.h.in
> > +++ b/Xfuncproto.h.in
> > @@ -83,7 +83,7 @@ in this Software without prior written authorization from The Open Group.
> >   # define _X_ATTRIBUTE_PRINTF(x,y)
> >   #endif /* GNUC>= 4 */
> >
> > -#if defined(__GNUC__)&&  (__GNUC__>= 4)
> > +#if defined(__GNUC__)&&  (__GNUC__>= 4)&&  !defined(__CYGWIN__)
> >   # define _X_EXPORT      __attribute__((visibility("default")))
> >   # define _X_HIDDEN      __attribute__((visibility("hidden")))
> >   # define _X_INTERNAL    __attribute__((visibility("internal")))

Acked-by: Peter Hutterer <peter.hutterer at who-t.net>
 
Cheers,
  Peter


More information about the xorg-devel mailing list